@Test
public void testPdpPolicyContainer() {

    container.nextItemId(policy);
    container.prevItemId(policy);
    container.firstItemId();
    container.lastItemId();
    container.isFirstId(policy);
    container.isLastId(policy);
    container.addItemAfter(policy);
    container.getContainerPropertyIds();
    container.getItemIds();
    container.getType("Id");
    assertNull(container.getType("NonExistant"));
    assertTrue(String.class.equals(String.class));
    container.getType("Name");
    assertTrue(String.class.equals(String.class));
    container.getType("Version");
    assertTrue(String.class.equals(String.class));
    container.getType("Description");
    assertTrue(String.class.equals(String.class));
    container.getType("Root");
    assertTrue(Boolean.class.equals(Boolean.class));
    assertTrue(container.size() == 1);
    container.containsId(policy);
    container.removeItem(policy);
    container.addContainerProperty(null, null, null);
    container.removeContainerProperty(policy);
    container.removeAllItems();
    assertFalse(container.isFirstId(policy));
    assertFalse(container.isLastId(policy));
    assertNull(container.firstItemId());
    assertNull(container.lastItemId());
    assertNull(container.prevItemId(policy));
    assertThatThrownBy(() -> container.getItemIds(0, -1)).isInstanceOf(IllegalArgumentException.class);
    container.addItemAt(0);
}