@Test
public void testOpenCloseType() {

    ContactItem item = new ContactItem("test");
    item.setState(OpenClosedType.OPEN);
    assertEquals(OpenClosedType.OPEN, item.getState());
    item.setState(OpenClosedType.CLOSED);
    assertEquals(OpenClosedType.CLOSED, item.getState());
}