FileContentItem extends SimpleContentItem { public File getFile() { return file; } FileContentItem( File file ); File getFile();  }
@Test public void testInitProperties() throws IOException { fci = new FileContentItem( tempOutFile ); Assert.assertNull( "mimeType", fci.getMimeType() ); Assert.assertNull( "dataSource", fci.getDataSource() ); Assert.assertNull( "inputStream", fci.getInputStream() ); Assert.assertNotNull( "outputStream", fci.getOutputStream( null ) ); Assert.assertEquals( "file", tempOutFile, fci.getFile() ); }