@Test
public void testGetBundleExportedPackages() throws Exception {

    
    Bundle bundle = mock(Bundle.class);
    PackageAdmin admin = mock(PackageAdmin.class);
    
    assertEquals(0, getBundleExportedPackages(bundle, admin).length);
    
    ExportedPackage exported = mock(ExportedPackage.class);
    when(exported.getName()).thenReturn("org.apache.aries.jmx");
    when(exported.getVersion()).thenReturn(new Version("1.0.0"));
    when(admin.getExportedPackages(bundle)).thenReturn(new ExportedPackage[] { exported });
    
    assertArrayEquals(new String[] { "org.apache.aries.jmx;1.0.0"} , getBundleExportedPackages(bundle, admin));
    
}