@@ -0,0 +1,1374 @@
+package datameer.awstasks.ssh;%0A%0Aimport static org.mockito.Mockito.*;%0A%0Aimport org.junit.Test;%0A%0Aimport datameer.awstasks.exec.ExecOutputHandler;%0Aimport datameer.awstasks.ssh.SshExecDelegateCommand.ToLineOutputStream;%0A%0Apublic class SshExecDelegateCommandTest %7B%0A%0A    @Test%0A    public void testOutputStream_NoEof() throws Exception %7B%0A        ExecOutputHandler handler = mock(ExecOutputHandler.class);%0A        ToLineOutputStream stream = new ToLineOutputStream(handler);%0A%0A        stream.write(%22hello handler%22.getBytes());%0A        verify(handler, times(1)).handleLine(%22hello handler%22);%0A        verifyNoMoreInteractions(handler);%0A%0A        stream.write(%22hello handler%5Cn%22.getBytes());%0A        verify(handler, times(2)).handleLine(%22hello handler%22);%0A        verifyNoMoreInteractions(handler);%0A%0A        stream.write(%22%5Cnhello handler%22.getBytes());%0A        verify(handler, times(1)).handleLine(%22%22);%0A        verify(handler, times(3)).handleLine(%22hello handler%22);%0A        verifyNoMoreInteractions(handler);%0A%0A        stream.write(%221%5Cn2%22.getBytes());%0A        verify(handler, times(1)).handleLine(%221%22);%0A        verify(handler, times(1)).handleLine(%222%22);%0A        verifyNoMoreInteractions(handler);%0A%0A        stream.write(%22a%5Cnb%5Cn%22.getBytes());%0A        verify(handler, times(1)).handleLine(%22a%22);%0A        verify(handler, times(1)).handleLine(%22b%22);%0A        verifyNoMoreInteractions(handler);%0A    %7D%0A%7D%0A

fix some shell issues