MutableHandlerRegistry extends HandlerRegistry { @Override @Nullable public ServerMethodDefinition<?, ?> lookupMethod(String methodName, @Nullable String authority) { String serviceName = MethodDescriptor.extractFullServiceName(methodName); if (serviceName == null) { return null; } ServerServiceDefinition service = services.get(serviceName); if (service == null) { return null; } return service.getMethod(methodName); }  @Nullable ServerServiceDefinition addService(ServerServiceDefinition service); boolean removeService(ServerServiceDefinition service); @Override @Nullable ServerMethodDefinition<?, ?> lookupMethod(String methodName, @Nullable String authority);  }
@Test public void missingMethodLookupReturnsNull() { assertNull(registry.lookupMethod("bad")); }