JsonComponentImpl implements JsonComponent { @Override public <ENTITY> JsonEncoder<ENTITY> noneOf(Manager<ENTITY> manager) { return new JsonEncoderImpl<>(projectComponent.getProject(), manager); } JsonComponentImpl(ProjectComponent projectComponent); @Override JsonEncoder<ENTITY> noneOf(Manager<ENTITY> manager); @Override JsonEncoder<ENTITY> allOf(Manager<ENTITY> manager); @SafeVarargs @SuppressWarnings("varargs") @Override final JsonEncoder<ENTITY> of(Manager<ENTITY> manager, Field<ENTITY>... fields);  }
@Test void testNoneOf() { final JsonEncoder<Person> result = jsonComponent.noneOf(persons); final String json = persons.stream().collect(result.collector()); assertEquals("[{},{},{},{},{},{},{},{}]", json); }