### Question:
TextApplication { public static void main(String[] args) throws NamingException { TextProcessorRemote textProcessor = EJBFactory.createTextProcessorBeanFromJNDI("ejb:"); System.out.print(textProcessor.processText("sample text")); }  static void main(String[] args);  }### Answer:
@Test public void givenInputString_whenCompareTtoStringPrintedToConsole_thenSuccessful() throws NamingException { TextApplication.main(new String[]{}); assertEquals("SAMPLE TEXT", outContent.toString()); }