EntityMap { public boolean containsVertex(final Object vertex) { return backingMap.containsKey(vertex); }  boolean putEntity(final Object vertex, final Entity entity); boolean putEntities(final Object vertex, final Set<Entity> entities); Set<Entity> get(final Object vertex); Set<Object> getVertices(); boolean containsVertex(final Object vertex); String toStringFull(); @Override String toString();  }
@Test public void shouldContainVertex() { final EntityMap entityMap = getEntityMap(); final boolean results = entityMap.containsVertex(6); assertThat(results, is(true)); }
@Test public void shouldNotContainVertex() { final EntityMap entityMap = getEntityMap(); final boolean results = entityMap.containsVertex(7); assertThat(results, is(false)); }