@Test
public void addEntities() throws Exception {

    String[][] array = { { "foo", "100" }, { "bar", "101" } };
    Entities e = new Entities();
    e.addEntities(array);
    assertEquals("foo", e.getEntityName(100));
    assertEquals("bar", e.getEntityName(101));
    assertEquals(100, e.getEntityValue("foo"));
    assertEquals(101, e.getEntityValue("bar"));
}