Response { public boolean isCompassDirectionRequired() { return responseStatus.isCompassDirectionRequired(); } Response(ResponseStatus responseStatus, Map<String, Object> geocodes); boolean messageAppliesTo(String streetName); boolean isCompassDirectionRequired(); boolean isRejected(); int similarNamesCount(); List<String> getSimilarNames(); ResponseStatus getResponseStatus(); Map<String, Object> getGeocodes(); ReadableInstant getTimestamp(); @Override String toString();  }
@Test public void testIsCompassDirectionRequired() { assertFalse(response.isCompassDirectionRequired()); response.getResponseStatus().getGeosupportReturnCode() .setReturnCode(ReturnCodeValue.COMPASS_DIRECTION_REQUIRED.value()); assertTrue(response.isCompassDirectionRequired()); response.getResponseStatus().getGeosupportReturnCode().setReturnCode(null); assertFalse(response.isCompassDirectionRequired()); }