public void testContents() throws Exception {
File temp = File.createTempFile( TRECDocumentCollectionTest.class.getName(), ".testContents" );
File tempAgain = File.createTempFile( TRECDocumentCollectionTest.class.getName(), ".testContentsAgain" );
temp.deleteOnExit();
tempAgain.deleteOnExit();
OutputStream outputStream = new FileOutputStream( temp );
OutputStream outputStreamAgain = new FileOutputStream( tempAgain );
IOUtils.copy( this.getClass().getResourceAsStream( "testContents.data" ), outputStream );
outputStream.close();
IOUtils.copy( this.getClass().getResourceAsStream( "testContentsAgain.data" ), outputStreamAgain );