TaxesSettings implements ExposedSettings { public Configurable<Mode> getMode() { return mode; }  @Override String getKey(); Configurable<Mode> getMode(); Configurable<TaxRule> getVat(); Configurable<List<TaxRule>> getOthers();  }
@Test public void testModeDeserialization() throws Exception { ObjectMapper mapper = new ObjectMapper(); TaxesSettings mode = mapper.readValue("{ \"mode\": { \"value\" : \"incl\" }}", TaxesSettings.class); Assert.assertEquals(Mode.INCLUSIVE_OF_TAXES, mode.getMode().getValue()); }