/** test mapping */
  @Test
  public void testMapping() {
    final EndpointMapping endpointMapping = new EndpointMapping();
    final EndpointEntity endpointEntity = new EndpointEntity();
    endpointEntity.setMac("P1");
    endpointEntity.setName("P1.name");
    endpointEntity.setX(0);
    endpointEntity.setY(0);
    endpointMapping.set(endpointEntity);

    assertEquals(0, endpointMapping.get("P1").getY(), 2);
    assertEquals(0, endpointMapping.get("P1").getX(), 2);
  }
  /** test mapping */
  @Test
  public void testMappingUnknonw() {
    final EndpointMapping endpointMapping = new EndpointMapping();

    assertNull(endpointMapping.get("P1"));
  }