@SuppressWarnings("unchecked")
@Test
public void testRemoveItem() throws PAPException {

    assertTrue(container.removeItem(group));
    PAPPolicyEngine mockPAPPolicyEngine = Mockito.mock(PAPPolicyEngine.class);
    PDPGroupContainer groupContainer = new PDPGroupContainer(mockPAPPolicyEngine);
    when(mockPAPPolicyEngine.getDefaultGroup()).thenThrow(PAPException.class);
    assertFalse(groupContainer.removeItem(group));
}