private void doStartFailureTest(Properties properties) throws IOException, InstantiationException {
    NioServer nioServer = getNettyServer(properties);
    try {
      nioServer.start();
      fail("NettyServer start() should have failed because of bad port number value");
    } catch (IllegalArgumentException e) {
      // nothing to do. expected.
    } finally {
      if (nioServer != null) {
        nioServer.shutdown();
      }
    }
  }
Test that the {@link NettyServer} fails to start up with the given properties.
@param properties
ambry-rest/src/test/java/com/github/ambry/rest/NettyServerTest.java