### Question:
EntityTable implements Closeable { @Nullable public String getName(long id, String type) { if (id == 0) { return null; } try { return idCache.get(new EntityId(id, type)).getName(); } catch (ExecutionException e) { throw new IllegalArgumentException(e.getCause()); } } EntityTable(MetricsTable table);   EntityTable(MetricsTable table, long maxId); long getId(String type, @Nullable String name); @Nullable String getName(long id, String type); int getIdSize(); @Override void close();  }### Answer:
@Test public void testGetName() throws Exception { InMemoryTableService.create("testGetName"); MetricsTable table = new InMemoryMetricsTable("testGetName"); EntityTable entityTable = new EntityTable(table); for (int i = 1; i <= 10; i++) { Assert.assertEquals((long) i, entityTable.getId("app", "app" + i)); } for (int i = 1; i <= 10; i++) { Assert.assertEquals("app" + i, entityTable.getName(i, "app")); } }