ObjectFactory { public HandlerMethodValidator handlerMethodValidator() { return new HandlerMethodValidator(); }  CdiInstanceResolver cdiInstanceResolver(); SystemCommandHandlerProxyFactory systemCommandHandlerProxyFactory(); BlacklistedCommandsScanner blacklistedCommandsScanner(); HandlerMethodValidator handlerMethodValidator(); BlacklistedCommandsFilter blacklistedCommandsFilter(); SystemCommandProxyResolver systemCommandProxyResolver(); SystemCommandHandlerScanner systemCommandScanner();  }
@Test public void shouldCreateHandlerMethodValidator() throws Exception { assertThat(objectFactory.handlerMethodValidator(), is(notNullValue())); }