@Test
public void noMessageShouldGenerateException() throws Exception {

    expectedException.expect(MojoFailureException.class);
    expectedException.expectMessage("There was nothing to output. Specify either message or fromFile");
    echoMojo.execute();
    verifyNoMoreInteractions(mavenLoggerMock);
    verifyNoMoreInteractions(mavenEchoOutputMock);
}