@Test
public void shouldLogSituationOnExceptionOnCreateException() throws IOException {

    when(serverSocketFactory.createServerSocket()).thenThrow(new IOException("Something"));
    ControllerImpl controllerImpl = new ControllerImpl(serverConfigFactory, serverSocketFactory,
            serverGui);
    try {
        controllerImpl.start();
    } catch (IllegalStateException e) {
        fail("Should start web server");
    }
}