### Question:
JsonMapObject implements Serializable { public Integer getIntegerProperty(String name) { Number number = getNumberProperty(name, Integer::valueOf); if (number != null) { return number instanceof Integer ? (Integer) number : Integer.valueOf(number.intValue()); } return null; } JsonMapObject();  JsonMapObject(Map<String, Object> values); void setProperty(String name, Object value); boolean containsProperty(String name); Object getProperty(String name); Map<String, Object> getMapProperty(String name); JsonMapObject getJsonMapProperty(String name); Map<String, Object> asMap(); Integer getIntegerProperty(String name); Long getLongProperty(String name); Boolean getBooleanProperty(String name); String getStringProperty(String name); List<String> getListStringProperty(String name); List<Map<String, Object>> getListMapProperty(String name); int hashCode(); boolean equals(Object obj); int size(); Map<String, Object> getUpdateCount(); Object removeProperty(String name);  }### Answer:
@Test public void testGetIntegerProperty() throws Exception { final String json = "{\"a\":123,\"b\":\"456\"}"; final JsonMapObject obj = new JsonMapObject(); new JsonMapObjectReaderWriter().fromJson(obj, json); assertEquals(Integer.valueOf(123), obj.getIntegerProperty("a")); assertEquals(Integer.valueOf(456), obj.getIntegerProperty("b")); }