DecoratedFileContent implements FileContent { @Override public void setLastModifiedTime( final long l ) throws FileSystemException { fileContent.setLastModifiedTime( l ); } DecoratedFileContent( final FileContent fileContent ); @Override FileObject getFile(); @Override long getSize(); @Override long getLastModifiedTime(); @Override void setLastModifiedTime( final long l ); @Override boolean hasAttribute( final String s ); @Override Map getAttributes(); @Override String[] getAttributeNames(); @Override Object getAttribute( final String s ); @Override void setAttribute( final String s, final Object o ); @Override void removeAttribute( final String s ); @Override Certificate[] getCertificates(); @Override InputStream getInputStream(); @Override OutputStream getOutputStream(); @Override RandomAccessContent getRandomAccessContent( final RandomAccessMode randomAccessMode ); @Override OutputStream getOutputStream( final boolean b ); @Override void close(); @Override FileContentInfo getContentInfo(); @Override boolean isOpen(); @Override long write( FileContent fileContent ); @Override long write( FileObject fileObject ); @Override long write( OutputStream outputStream ); @Override long write( OutputStream outputStream, int i );  }
@Test public void testSetLastModifiedTime() throws Exception { decorated.setLastModifiedTime( 100L ); verify( fileContent ).setLastModifiedTime( 100L ); }