@Test
public void testEmptyRequest()
{
ExchangeService service = new ExchangeService(URL);
EnvelopeDocument request = service.createEmptyRequest("bkerr@INT.TARTARUS.COM");
assertTrue(request.getEnvelope().isSetHeader());
assertTrue(request.getEnvelope().getHeader().isSetExchangeImpersonation());
ExchangeImpersonationType impersonation = request.getEnvelope().getHeader().getExchangeImpersonation();
assertTrue(impersonation.getConnectingSID().isSetPrincipalName());
assertEquals("bkerr@INT.TARTARUS.COM", impersonation.getConnectingSID().getPrincipalName());
request = service.createEmptyRequest("korganizer@INT.TARTARUS.COM");
assertEquals("korganizer@INT.TARTARUS.COM", request.getEnvelope().getHeader().getExchangeImpersonation()
.getConnectingSID().getPrincipalName());
}