@Test
public void testGetBundleLocation() throws Exception {

    org.osgi.service.cm.ConfigurationAdmin admin = mock(org.osgi.service.cm.ConfigurationAdmin.class);
    String pid = "org.apache.aries.jmx.mock";
    Configuration config = mock(Configuration.class);
    
    when(admin.getConfiguration(pid, null)).thenReturn(config);
    when(config.getBundleLocation()).thenReturn("/location");
    ConfigurationAdmin mbean = new ConfigurationAdmin(admin);
    
    assertEquals("/location", mbean.getBundleLocation(pid));
    
}