VertexWrapper { public boolean isPropertyRemoved(String name) { return removedProperties.contains(name); } VertexWrapper(Vertex v, ResourceDefinition resourceDefinition);  VertexWrapper(Vertex v,
                         PropertyMapper mapper,
                         Map<String, PropertyValueFormatter> formatters); Vertex getVertex(); T getProperty(String name); void setProperty(String name, Object value); Collection<String> getPropertyKeys(); Map<String, Object> getPropertyMap(); void removeProperty(String name); boolean isPropertyRemoved(String name); String toString();  }
@Test public void testIsPropertyRemoved() { String testType = "testType"; Vertex v = createMock(Vertex.class); expect(v.<String>getProperty(Constants.ENTITY_TYPE_PROPERTY_KEY)).andReturn(testType); replay(v); VertexWrapper vWrapper = new VertexWrapper(v, null, Collections.<String, PropertyValueFormatter>emptyMap()); vWrapper.removeProperty("foo"); assertTrue(vWrapper.isPropertyRemoved("foo")); assertFalse(vWrapper.isPropertyRemoved("bar")); }