{
DriverSelector selector = Mockito.mock( DriverSelector.class );
ServiceReference deviceRef = Mockito.mock( ServiceReference.class );
Mockito.when( selector.select( Mockito.eq( deviceRef ), Mockito.isA(Match[].class) ) )
.thenThrow( new RuntimeException( "test exception" ) );
add( "org.apache.felix.driver-1.5", 1 );
Match match = m_matcherImpl.selectBestMatch( deviceRef, selector );