@Override public <R extends Service> void configureService(ServiceBinding<R> serviceBinding) { if ( Configurable.class.isInstance( serviceBinding.getService() ) ) { ( (Configurable) serviceBinding.getService() ).configure( configurationValues ); } }
@Test public void testconfigure() { Map mockedConfigurationValues = mock(Map.class); Configurable configurable = new AuditServiceImpl(); configurable.configure(mockedConfigurationValues); }