### Question:
TagTranslator implements AutoCloseable { public OSHDBRole getOSHDBRoleOf(String role) { return this.getOSHDBRoleOf(new OSMRole(role)); } 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 testRole2Int() throws OSHDBKeytablesNotFoundException { OSMRole role = new OSMRole("from"); TagTranslator instance = new TagTranslator(TagTranslatorTest.conn); OSHDBRole expResult = new OSHDBRole(4); OSHDBRole result = instance.getOSHDBRoleOf(role); assertEquals(expResult, result); }