Response { public boolean isRejected() { return this.responseStatus.isRejected(); } 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 testIsRejected() { assertFalse(response.isCompassDirectionRequired()); assertTrue(new Response(fix.rejectStatus, fix.geocodes).isRejected()); }