Device { public Device setMapper(final String mapper) { this.mapper = mapper; return this; } Device();  Device(final Device other); Device setEnabled(final Boolean enabled); @JsonIgnore boolean isEnabled(); Device setExtensions(final Map<String, Object> extensions); Device putExtension(final String key, final Object value); Map<String, Object> getExtensions(); Device setDefaults(final Map<String, Object> defaults); Map<String, Object> getDefaults(); List<String> getVia(); Device setVia(final List<String> via); List<String> getViaGroups(); Device setViaGroups(final List<String> viaGroups); List<String> getMemberOf(); Device setMemberOf(final List<String> memberOf); Device setMapper(final String mapper); String getMapper();  }
@Test public void testEncodeMapper() { final var device = new Device(); device.setMapper("test"); final var json = JsonObject.mapFrom(device); assertThat(json).isNotNull(); assertThat(json.getString("mapper")).isEqualTo("test"); }