@Test(expected = AecuException.class)
public void doAction_textNotPresentDoesNotMatch() throws AecuException, IOException {

    when(out.toString()).thenReturn("test789");
    actionSpy.doAction(resource);
}