@Test(expected = MalformedInputException.class)
public void shouldThrowExceptionOnUnrecognizedUnit() throws MalformedInputException {

    RangeParser rangeParser = new RangeParser();
    rangeParser.parse("octets=1-100");
}