ResponseStatus { public int similarNamesCount() { return this.similarNames != null ? this.similarNames.size() : 0; }  boolean isCompassDirectionRequired(); boolean isRejected(); int similarNamesCount(); GeosupportReturnCode getGeosupportReturnCode(); void setGeosupportReturnCode(GeosupportReturnCode geosupportReturnCode); GeosupportReturnCode getGeosupportReturnCode2(); void setGeosupportReturnCode2(GeosupportReturnCode geosupportReturnCode2); List<String> getSimilarNames(); void setSimilarNames(List<String> similarNames); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testSimilarNamesCount() { assertThat(this.responseStatus.similarNamesCount()).isEqualTo(0); this.responseStatus.getSimilarNames().add("abc"); assertThat(this.responseStatus.similarNamesCount()).isEqualTo(1); this.responseStatus.setSimilarNames(null); assertThat(this.responseStatus.similarNamesCount()).isEqualTo(0); }