@Test
public void jsonSerializationWorksAsExpectedWithSelectedFields() {

    final RetrieveFeatures underTest =
            RetrieveFeatures.of(TestConstants.Thing.THING_ID, getJsonFieldSelector(),
                    TestConstants.EMPTY_DITTO_HEADERS);
    final JsonObject actualJson = underTest.toJson(FieldType.regularOrSpecial());
    assertThat(actualJson).isEqualTo(KNOWN_JSON_WITH_FIELD_SELECTION);
}