LocalServerTransport implements ServerTransport<Closeable> { public static LocalServerTransport create(String name) { Objects.requireNonNull(name, "name must not be null"); return new LocalServerTransport(name); } private  LocalServerTransport(String name); static LocalServerTransport create(String name); static LocalServerTransport createEphemeral(); static void dispose(String name); LocalClientTransport clientTransport(); @Override Mono<Closeable> start(ConnectionAcceptor acceptor);  }
@DisplayName("create throws NullPointerException with null name") @Test void createNullName() { assertThatNullPointerException() .isThrownBy(() -> LocalServerTransport.create(null)) .withMessage("name must not be null"); }