@Test
  public void startWithBadInputTest() throws InstantiationException, IOException {
    Properties properties = new Properties();
    // Should be > 0. So will throw at start().
    properties.setProperty("netty.server.port", "-1");
    doStartFailureTest(properties);

    properties = new Properties();
    // Should be > 0. So will throw at start().
    properties.setProperty("netty.server.ssl.port", "-1");
    doStartFailureTest(properties);
  }
Tests for correct exceptions are thrown on {@link NettyServer} instantiation/{@link NettyServer#start()} with bad
input.
@throws InstantiationException
@throws IOException
ambry-rest/src/test/java/com/github/ambry/rest/NettyServerTest.java