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;
  }
@Test
  public void isDuplicate_Same() {
    assertTrue( isDuplicate( singletonList( mockObject( "qwerty" ) ), mockObject( "qwerty" ) ) );
  }