@@ -0,0 +1,1613 @@
+package com.skraylabs.poker;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0Aimport java.io.PrintStream;%0A%0Apublic class ApplicationInputTest implements ApplicationTestInterface %7B%0A%0A  /**%0A   * Subclass of %7B@link Application%7D that can use a String object as a Test Double for an input%0A   * file.%0A   */%0A  class StringInputApplication extends SafeExitApplication %7B%0A    /**%0A     * Input to use for loading poker game state. Substitutes information usually read from an input%0A     * file.%0A     */%0A    public String inputString = %22%22;%0A%0A    @Override%0A    InputStream createInputStream() %7B%0A      return new ByteArrayInputStream(inputString.getBytes());%0A    %7D%0A  %7D%0A%0A  /**%0A   * SUT: Application.%0A   */%0A  private StringInputApplication app;%0A%0A  /**%0A   * Output stream from Application.main() for test verification.%0A   */%0A  private ByteArrayOutputStream outputStream;%0A%0A  /**%0A   * Temporary reference to System.out%0A   */%0A  private PrintStream console;%0A%0A  @Override%0A  public SafeExitApplication getApp() %7B%0A    return app;%0A  %7D%0A%0A  @Override%0A  public OutputStream getOutputStream() %7B%0A    return outputStream;%0A  %7D%0A%0A  /**%0A   * Set up test fixture.%0A   */%0A  @Before%0A  public void setUp() throws Exception %7B%0A    app = new StringInputApplication();%0A    outputStream = new ByteArrayOutputStream();%0A    console = System.out;%0A    System.setOut(new PrintStream(outputStream));%0A  %7D%0A%0A  /**%0A   * Tear down test fixture.%0A   */%0A  @After%0A  public void tearDown() throws Exception %7B%0A    System.setOut(console);%0A  %7D%0A%0A%7D%0A

Define a new Test Class, ApplicationInputTest.