{
int contestedPort = 9999;
ServerSocket socket = new ServerSocket( contestedPort );
InMemoryAppender appender = new InMemoryAppender( NeoServerWithEmbeddedWebServer.log );
NeoServerWithEmbeddedWebServer server = ServerBuilder.server()
<BUG>.withPassingStartupHealthcheck()</BUG>
.onPort( contestedPort )
<BUG>.withRandomDatabaseDir()</BUG>
.build();
server.start();

{
@Test
public void shouldComplainIfServerPortIsAlreadyTaken() throws IOException
{
int contestedPort = 9999;
ServerSocket socket = new ServerSocket( contestedPort );
InMemoryAppender appender = new InMemoryAppender( NeoServerWithEmbeddedWebServer.log );
NeoServerWithEmbeddedWebServer server = ServerBuilder.server()
.onPort( contestedPort )
.build();
server.start();
