@Test
public void toJsonWithAllFieldsSetV2() {

    final QueryThings command = QueryThings.of(TestConstants.KNOWN_FILTER_STR,
            Arrays.asList(TestConstants.KNOWN_OPT_1, TestConstants.KNOWN_OPT_2),
            JsonFactory.newFieldSelector(KNOWN_FIELDS, TestConstants.JSON_PARSE_OPTIONS),
            TestConstants.KNOWN_NAMESPACES_SET,
            DittoHeaders.empty());
    final String json = command.toJsonString();
    assertThat(json).isEqualTo(JSON_ALL_FIELDS_V2);
}