@Test
public void testGetBundleIds() throws Exception {

    assertEquals(0, getBundleIds((Bundle[])null).length);
    assertEquals(0, getBundleIds(new Bundle[0]).length);
    
    Bundle b1 = mock(Bundle.class);
    when(b1.getBundleId()).thenReturn(new Long(47));
    Bundle b2 = mock(Bundle.class);
    when(b2.getBundleId()).thenReturn(new Long(23));
    
    assertArrayEquals(new long[] { 47 , 23 }, getBundleIds(new Bundle[] { b1, b2 }));
    
}