### Question:
RankedList { @VisibleForTesting String getToString( int rank, T item ) { return new RankedItem( rank, item ).toString(); } RankedList( Comparator<T> comparator ); void itemAdded( T item, Map config ); void itemRemoved( T item ); static final String SERVICE_RANKING; }### Answer:
@Test public void testRankedItemToString() { assertEquals( "(100) test", rankedList.getToString( 100, "test" ) ); }