@Test
public void cannotParseSendUsingBothFileAndText() {

    try {
        Options options = OptionsParser.parse(new String[]{
                "send", "-t", "REQ", "-f", "file.req"
        });
        fail("Should have failed to accept both -f and -t options together but got: " + options);
    } catch (OptionsException e) {
        assertEquals("Cannot use both --text and --file options together", e.getMessage());
    }
    try {
        Options options = OptionsParser.parse(new String[]{
                "send", "--file", "file", "-p", "body", "--text", "text.req"
        });
        fail("Should have failed to accept both -f and -t options together but got: " + options);
    } catch (OptionsException e) {
        assertEquals("Cannot use both --text and --file options together", e.getMessage());
    }
}