// start client
MockServerClient mockServerClient = new MockServerClient("localhost", serverPort);
for (int i = 0; i < 2; i++) {
// when
mockServerClient.stop();
// then
assertFalse(mockServer.isRunning());
mockServer.start(serverPort, serverSecurePort);
assertTrue(mockServer.isRunning());