@Test
public void testDeleteConfigurations() throws Exception {

    org.osgi.service.cm.ConfigurationAdmin admin = mock(org.osgi.service.cm.ConfigurationAdmin.class);
    String filter = "(" + Constants.SERVICE_PID + "=org.apache.aries.jmx.mock)";
    
    Configuration a = mock(Configuration.class);
    Configuration b = mock(Configuration.class);
    
    when(admin.listConfigurations(filter)).thenReturn(new Configuration[] { a, b });
    
    ConfigurationAdmin mbean = new ConfigurationAdmin(admin);
    mbean.deleteConfigurations(filter);
    verify(a).delete();
    verify(b).delete();
    
}