### Question:
NumberComparator implements Comparator<Object> { public static Comparable<Object> getComparable(Object o) { final Number n = toNumber(o); return new Comparable<Object>() { @Override public boolean equals(Object obj) { return _instance.equals(obj); } public int compareTo(Object o) { return _instance.compare(n, o); } @Override public String toString() { return "NumberComparable[number=" + n + "]"; } }; } private  NumberComparator(); static Comparator<Object> getComparator(); static Comparable<Object> getComparable(Object o); int compare(Object o1, Object o2); static boolean isIntegerType(Number n); static Number toNumber(Object value);  }### Answer:
@Test public void testComparable() throws Exception { Comparable<Object> comparable = NumberComparator.getComparable("125"); assertEquals(0, comparable.compareTo(125)); assertEquals(-1, comparable.compareTo(126)); }