public void setUp() {
//initializeClient(null);
}
public void testClient(){
JavaClient client = new JavaClient(ip, port);
setResource(client);
try {
setEnviroment(client);
setKey(client);
setCredentials(client);
} catch (Exception e) {
e.printStackTrace();
assertNull(e);
}
setResource(client);
//client.flush();
assertTrue(client.flush());
assertTrue("true".equals(client.getAnswer()));
}