private void badFactoriesTest() throws Exception {
    doBadFactoryClassTest("rest.server.nio.server.factory");
    doBadFactoryClassTest("rest.server.rest.request.service.factory");
    doBadFactoryClassTest("rest.server.router.factory");
    doBadFactoryClassTest("rest.server.request.response.handler.factory");
    doBadFactoryClassTest("rest.server.account.service.factory");
  }
Tests for bad factory class names in {@link RestServer}.
@throws Exception
ambry-rest/src/test/java/com/github/ambry/rest/RestServerTest.java