@Test
public void jsonSerializationWorksAsExpectedWithSelectedFields() {

    final RetrieveThing underTest = RetrieveThing.getBuilder(TestConstants.Thing.THING_ID, DittoHeaders.empty())
            .withSelectedFields(JSON_FIELD_SELECTOR)
            .build();
    final JsonObject actualJson = underTest.toJson(FieldType.regularOrSpecial());
    assertThat(actualJson).isEqualTo(KNOWN_JSON_WITH_FIELD_SELECTION);
}