@Test
void collector() {

    instance.putInt(User.ID);
    instance.put(User.NAME);
    final JsonCollector<User> collector = instance.collector();
    final String json = Stream.of(user).collect(collector);
    assertTrue(json.contains(NAME));
    assertTrue(json.contains(Integer.toString(ID)));
}