assertNull(response.getCommand());
}
@Test
public void testPreauth() {
StatusResponse response = factory.preauth(KEY);
assertNotNull(response);
assertEquals(StatusResponse.Type.PREAUTH, response
.getServerResponseType());
assertEquals(null, response.getTag());
assertEquals(KEY, response.getTextKey());
assertNull(response.getResponseCode());
assertNull(response.getCommand());
response = factory.preauth(KEY, CODE);
assertNotNull(response);
assertEquals(StatusResponse.Type.PREAUTH, response
.getServerResponseType());
assertEquals(null, response.getTag());
assertEquals(KEY, response.getTextKey());
assertEquals(CODE, response.getResponseCode());
assertNull(response.getCommand());
}