ResponseStatus { public boolean isRejected() { boolean grcOneRejectedOrNull = this.geosupportReturnCode != null ? this.geosupportReturnCode.isRejected() : true; boolean grcTwoRejectedOrNull = this.geosupportReturnCode2 != null ? this.geosupportReturnCode2.isRejected() : true; return grcOneRejectedOrNull && grcTwoRejectedOrNull; }  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 testIsRejected() { assertThat(this.responseStatus.isRejected()).isTrue(); GeosupportReturnCode grc1 = this.responseStatus.getGeosupportReturnCode(); grc1.setReturnCode("00"); assertThat(grc1.isRejected()).isFalse(); GeosupportReturnCode grc2 = this.responseStatus.getGeosupportReturnCode2(); assertThat(grc2.isRejected()).isTrue(); assertThat(this.responseStatus.isRejected()).isFalse(); grc2.setReturnCode("01"); assertThat(grc2.isRejected()).isFalse(); assertThat(this.responseStatus.isRejected()).isFalse(); grc1.setReturnCode("EE"); assertThat(grc1.isRejected()).isTrue(); assertThat(this.responseStatus.isRejected()).isFalse(); grc2.setReturnCode("11"); assertThat(grc2.isRejected()).isTrue(); assertThat(this.responseStatus.isRejected()).isTrue(); this.responseStatus.setGeosupportReturnCode(null); assertThat(this.responseStatus.isRejected()).isTrue(); this.responseStatus.setGeosupportReturnCode2(null); assertThat(this.responseStatus.isRejected()).isTrue(); }