@Override
public void testRunFinished(Result result) throws Exception {
if (SystemProperties.mockServerHttpPort() != -1) {
logger.info("Stopping the MockServer");
new MockServerClient("127.0.0.1", SystemProperties.mockServerHttpPort()).stop();
} else {
logger.info("Failed to stop MockServer as HTTP port is unknown");
}
}