@Override
    public Optional<InputStatusRecord> get(final String inputId) {
        return Optional.ofNullable(statusCollection.findOneById(new ObjectId(inputId)));
    }
@Test
    @MongoDBFixtures("input-status.json")
    public void get_ReturnsRecord_WhenRecordPresentInDB() {
        Optional<InputStatusRecord> optDbRecord = cut.get("54e3deadbeefdeadbeef0001");

        assertThat(optDbRecord, notNullValue());
        assertThat(optDbRecord.isPresent(), is(true));
        assertThat(optDbRecord.get(), instanceOf(InputStatusRecord.class));

        InputStatusRecord record = optDbRecord.get();

        assertThat(record.inputId(), is("54e3deadbeefdeadbeef0001"));
        assertThat(record.inputStateData(), instanceOf(InputStateData.class));
        assertThat(record.inputStateData().type(), is("test_type_1"));

        optDbRecord = cut.get("54e3deadbeefdeadbeef0002");

        assertThat(optDbRecord, notNullValue());
        assertThat(optDbRecord.isPresent(), is(true));
        assertThat(optDbRecord.get(), instanceOf(InputStatusRecord.class));

        record = optDbRecord.get();

        assertThat(record.inputId(), is("54e3deadbeefdeadbeef0002"));
        assertThat(record.inputStateData(), instanceOf(InputStateData.class));
        assertThat(record.inputStateData().type(), is("test_type_2"));

        optDbRecord = cut.get("54e3deadbeefdeadbeef0003");

        assertThat(optDbRecord, notNullValue());
        assertThat(optDbRecord.isPresent(), is(true));
        assertThat(optDbRecord.get(), instanceOf(InputStatusRecord.class));

        record = optDbRecord.get();

        assertThat(record.inputId(), is("54e3deadbeefdeadbeef0003"));
        assertThat(record.inputStateData(), instanceOf(InputStateData.class));
        assertThat(record.inputStateData().type(), is("test_type_5"));
    }