### Question:
SpoonSharedObjectDelegate extends SpoonDelegate { protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; } SpoonSharedObjectDelegate( Spoon spoon ); void setSharedObjectSyncUtil( SharedObjectSyncUtil sharedObjectSyncUtil );  }### Answer:
@Test public void isDuplicate_Same() { assertTrue( isDuplicate( singletonList( mockObject( "qwerty" ) ), mockObject( "qwerty" ) ) ); }
@Test public void isDuplicate_DifferentCase() { assertTrue( isDuplicate( singletonList( mockObject( "qwerty" ) ), mockObject( "Qwerty" ) ) ); }
@Test public void isDuplicate_NotSame() { assertFalse( isDuplicate( singletonList( mockObject( "qwerty" ) ), mockObject( "asdfg" ) ) ); }