@Test
  public void testPingEventWithIncorrectCredentials() throws SoapFaultException {
    PingEvent pingEvent = new PingEvent(new ClientId("clientid"));

    CorrelationGateway gateway =
        new CorrelationGateway("dummy", "passw", TEST_SERVER) {

          @Override
          public Logger createLogger() {
            return new Logger() {

              @Override
              public void log(String message) {
                System.out.println(message);
              }
            };
          }
        };
    try {
      gateway.ping(pingEvent);
      Assert.fail();
    } catch (InvalidCredentialsException e) {

    }
  }
 @Test
 public void testPingEventWithCorrectCredentials()
     throws InvalidCredentialsException, SoapFaultException {
   PingEvent pingEvent = new PingEvent(new ClientId("clientid"));
   GATEWAY.ping(pingEvent);
 }