String[] driverIds = new String[]
{ "org.apache.felix.driver-1.0", "org.apache.felix.driver-1.1", };
for ( String string : driverIds )
{
Mockito.when( dl.loadDriver( string ) ).thenReturn( null );
Mockito.when( m_context.installBundle( DriverLoader.DRIVER_LOCATION_PREFIX + string, null ) )
.thenThrow(new BundleException( "test exception" ) );
}
List<ServiceReference> refs = m_loader.loadDrivers( locators, driverIds );