sourceTransaction.commit();
sourceTransaction.close();
logger.debug("Round trip event:{}", sourceEvent);
source.stop();
Assert.assertTrue("Reached stop or error",
LifecycleController.waitForOneOf(source, LifecycleState.STOP_OR_ERROR));
Assert.assertEquals("Server is stopped", LifecycleState.STOP,
source.getLifecycleState());
}