### Question:
TagTranslator implements AutoCloseable { public OSHDBTagKey getOSHDBTagKeyOf(String key) { return getOSHDBTagKeyOf(new OSMTagKey(key)); } TagTranslator(Connection conn); @Override void close(); OSHDBTagKey getOSHDBTagKeyOf(String key); OSHDBTagKey getOSHDBTagKeyOf(OSMTagKey key); OSMTagKey getOSMTagKeyOf(int key); OSMTagKey getOSMTagKeyOf(OSHDBTagKey key); OSHDBTag getOSHDBTagOf(String key, String value); OSHDBTag getOSHDBTagOf(OSMTag tag); OSMTag getOSMTagOf(int key, int value); OSMTag getOSMTagOf(OSHDBTag tag); OSHDBRole getOSHDBRoleOf(String role); OSHDBRole getOSHDBRoleOf(OSMRole role); OSMRole getOSMRoleOf(int role); OSMRole getOSMRoleOf(OSHDBRole role); Connection getConnection();  }### Answer:
@Test public void testKey2Int() throws OSHDBKeytablesNotFoundException { OSMTagKey key = new OSMTagKey("highway"); TagTranslator instance = new TagTranslator(TagTranslatorTest.conn); OSHDBTagKey expResult = new OSHDBTagKey(2); OSHDBTagKey result = instance.getOSHDBTagKeyOf(key); assertEquals(expResult, result); }