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