@Override
  public boolean canRenameTo( FileObject newfile ) {
    return resolvedFileObject.canRenameTo( newfile );
  }
@Test
  public void testDelegatesCanRenameTo() {

    FileObject newFile = mock( FileObject.class );

    when( resolvedFileObject.canRenameTo( newFile ) ).thenReturn( true );

    assertTrue( fileObject.canRenameTo( newFile ) );

    when( resolvedFileObject.canRenameTo( newFile ) ).thenReturn( false );

    assertFalse( fileObject.canRenameTo( newFile ) );

    verify( resolvedFileObject, times( 2 ) ).canRenameTo( newFile );
  }