### Question:
DbInfo implements Serializable { public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); } @JsonCreator  DbInfo(@JsonProperty("db_name") String dbName); boolean isCompactRunning(); String getDbName(); int getDiskFormatVersion(); long getDiskSize(); long getDocCount(); int getDocDelCount(); long getInstanceStartTime(); int getPurgeSeq(); long getUpdateSeq(); String getUpdateSeqAsString(); boolean isUpdateSeqNumeric(); @JsonAnySetter void setUnknown(String key, Object value); Map<String, Object> getUnknownFields(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void given_updateSeq_is_numeric_then_isUpdateSeqNumeric_should_return_true() throws Exception { DbInfo info = new DbInfo("test"); String json = "{\"update_seq\":123456789123}"; info.updateSeq = new ObjectMapper().readTree(json).get("update_seq"); assertTrue(info.isUpdateSeqNumeric()); }
@Test public void given_updateSeq_is_not_numeric_then_isUpdateSeqNumeric_should_return_false() throws Exception { DbInfo info = new DbInfo("test"); String json = "{\"update_seq\":\"dqwEFWEGRGQ34Q\"}"; info.updateSeq = new ObjectMapper().readTree(json).get("update_seq"); assertFalse(info.isUpdateSeqNumeric()); }
@Test public void given_updateSeq_is_array_then_isUpdateSeqNumeric_should_return_false() throws Exception { DbInfo info = new DbInfo("test"); String json = "{\"update_seq\":[123,\"dqwEFWEGRGQ34Q\"]}"; info.updateSeq = new ObjectMapper().readTree(json).get("update_seq"); assertFalse(info.isUpdateSeqNumeric()); }