Client implements IClient { @Override public IRecords findRecords(int start, int max, Date from, Date to) throws Exception { return findRecords(start, max, from, to, null); } Client(CloseableHttpClient httpClient, URL baseUrl, IProfile profile, SimpleCredentials cred); @Override IRecords findRecords(int start, int max, Date from, Date to); @Override IRecords findRecords(int start, int max, Date from, Date to, String searchText); @Override String readMetadata(String id); @Override String toString();  }
@Test public void testGetRecords() throws Exception { Profiles profiles = new ProfilesLoader().load(); IProfile defaultProfile = profiles.getDefaultProfile(); assertNotNull("No default profile", defaultProfile); Bots bots = BotsUtils.readBots("http: BotsHttpClient httpClient = new BotsHttpClient(bots); Client cswClient = new Client(httpClient, new URL("http: IRecords records = cswClient.findRecords(1, 10, null, null); assertNotNull("No records", records); }