### Question:
AuthenticationMappingManagerImpl implements AuthenticationMappingManager { @Override @SuppressWarnings( "unchecked" ) public <InputType, OutputType> OutputType getMapping( Class<InputType> inputType, InputType input, Class<OutputType> outputType ) throws MappingException { AuthenticationMappingService<InputType, OutputType> service; synchronized ( serviceMap ) { service = serviceMap.get( new TypePair( inputType, outputType ) ).stream() .filter( ( rankedService ) -> rankedService.getService().accepts( input ) ) .findFirst() .map( RankedAuthService::getService ) .orElse( null ); } return service != null ? service.getMapping( input, null ) : null; } AuthenticationMappingManagerImpl();  AuthenticationMappingManagerImpl( AuthenticationMappingService service ); @Override @SuppressWarnings( "unchecked" ) OutputType getMapping( Class<InputType> inputType, InputType input,
                                                        Class<OutputType> outputType ); void onMappingServiceAdded( AuthenticationMappingService service, Map config ); void onMappingServiceRemoved( AuthenticationMappingService service );  }### Answer:
@Test public void noMappingAvailable() throws Exception { assertThat( manager.getMapping( String.class, "some value", List.class ), nullValue() ); }