PathDispatcher { public static <T extends DispatcherContext> Builder<T> builder() { return new Builder<>(); } private  PathDispatcher(Builder<ContextT> builder); boolean dispatch(String httpMethod, String path, ContextT context); static Builder<T> builder();  }
@Test public void builderNullHttpMethod() { try { PathDispatcher.builder().add(null, "", getHandler); fail("expected NullPointerException"); } catch (NullPointerException e) { } }
@Test public void builderNullPath() { try { PathDispatcher.builder().add("GET", null, getHandler); fail("expected NullPointerException"); } catch (NullPointerException e) { } }
@Test public void builderNullHandler() { try { PathDispatcher.builder().add("GET", "", null); fail("expected NullPointerException"); } catch (NullPointerException e) { } }