  @Test
  public void testNoEntitiesDoc () throws Exception {


    ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream ();
    PrintStream printStream = new PrintStream (byteArrayStream);

    File nuthinDocFile = FileUtility.createTemporary ();
    nuthinDocFile.deleteOnExit();
    String nuthinDocFilePath = nuthinDocFile.getAbsolutePath ();
    StreamUtil.copyStringToFile (nuthinDocument, nuthinDocFile);
    
    //- Test for trectext format document annotations.
    App.run (new String[]{ "annotations-generate",
                           "--inputFiles=" + nuthinDocFilePath,
                           "--annotationTypes=ALL"
	                 }, printStream);

    String outputLine = byteArrayStream.toString ().trim ();

    //- Expected line
    String expectedLine =  nuthinDocFilePath + "   " + "[tw-no-entities]  No extractions this document.";

    assertEquals (expectedLine, outputLine);

    byteArrayStream.close();
    printStream.close();


  }