Response { public int similarNamesCount() { return responseStatus.similarNamesCount(); } 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 testSimilarNamesCount() { assertThat(response.similarNamesCount()).isEqualTo(0); response.getResponseStatus().getSimilarNames().add("abc"); assertThat(response.similarNamesCount()).isEqualTo(1); }