GeosupportReturnCode { public boolean hasSimilarNames() { return ReturnCodeValue.NOT_RECOGNIZED_WITH_SIMILAR_NAMES.is(this.returnCode); }  boolean isCompassDirectionRequired(); boolean isRejected(); boolean hasSimilarNames(); boolean hasReasonCode(); boolean hasMessage(); String getReturnCode(); void setReturnCode(String geosupportReturnCode); String getReasonCode(); void setReasonCode(String reasonCode); String getMessage(); void setMessage(String message); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testHasSimilarNames() { assertFalse(this.grc.hasSimilarNames()); this.grc.setReturnCode(ReturnCodeValue.NOT_RECOGNIZED_WITH_SIMILAR_NAMES.value()); assertTrue(this.grc.hasSimilarNames()); this.grc.setReturnCode(ReturnCodeValue.NOT_RECOGNIZED_NO_SIMILAR_NAMES.value()); assertFalse(this.grc.hasSimilarNames()); }