@Test
public void getContextIdsTest() {

    
    Integer ids[] = mp.getContextIds();
    int size = ids.length;
    int contextId = mp.addContext();        
    ids = mp.getContextIds();
    assertEquals(size + 1, ids.length);
    
    boolean found = false;
    for(Integer i : ids) {
        if (i == contextId) {
            found = true;
        }
    }
    assertTrue("New context should exist", found);
    
    mp.removeContext(contextId);
    ids = mp.getContextIds();
    assertEquals(size, ids.length);
    found = false;
    for(Integer i : ids) {
        if (i == contextId) {
            found = true;
        }
    }
    assertFalse("Deleted context should not exist", found);
    
}