StringifierComparator implements Comparator<T> { public StringifierComparator() { stringifier = new DefaultStringifier<T>(); } StringifierComparator();  StringifierComparator(StringifierIF<T> stringifier);  StringifierComparator(StringifierIF<T> stringifier, Comparator<? super T> comparator); Comparator<? super T> getComparator(); void setComparator(Comparator<? super T> comparator); @Override int compare(T obj1, T obj2);  }
@Test public void testStringifierComparator() { UpperCaseGrabber upg = new UpperCaseGrabber(); GrabberStringifier grb = new GrabberStringifier(upg); testComparator(new StringifierComparator(grb).compare(upg.grab("foobar"), "FOOBAR"), 0, 1); }