@Test
void of() {

    final JsonEncoder<User> encoder = instance.of(userManager, User.NAME);
    final String actual = encoder.apply(user);
    assertFalse(actual.contains("id"));
    assertFalse(actual.contains(Integer.toString(ID)));
    assertTrue(actual.contains("name"));
    assertTrue(actual.contains(NAME));
}