Search { public int getLevel() { return request.getLevel(); } Search(Request request, Response response); Request getRequest(); Response getResponse(); boolean isRejected(); List<String> getSimilarNames(); boolean responseMessageAppliesTo(String streetName); ResponseStatus getResponseStatus(); int getLevel(); boolean lessThanOrEqualTo(int level); @Override String toString();  }
@Test public void testGetLevel() { search.getRequest().setLevel(128); assertThat(search.getLevel()).isEqualTo(search.getRequest().getLevel()); assertThat(search.getLevel()).isEqualTo(128); }