### Question:
StringLongMapping { public static long toLong(String id) { return MOST_LONGS_PATTERN.matcher(id).matches() ? Long.parseLong(id) : RandomUtils.hash(id); } StringLongMapping(); static long toLong(String id); long add(String id); void addMapping(String id, long numericID); String toString(long numericID); LongObjectMap<String> getReverseMapping(); ReadWriteLock getLock();  }### Answer:
@Test public void testToLong() { assertEquals(-7363431537935844490L, StringLongMapping.toLong("foo")); }
@Test public void testNumeric() { assertEquals(0, StringLongMapping.toLong("0")); }