@Override
	public boolean match(Message msg, StreamRule rule) {
        Double msgVal = getDouble(msg.getField(rule.getField()));
        if (msgVal == null) {
            return false;
        }

        Double ruleVal = getDouble(rule.getValue());
        if (ruleVal == null) {
            return false;
        }

        return rule.getInverted() ^ (msgVal > ruleVal);
	}
@Test
    public void testMissedDoubleMatchWithInvalidValue() {
        StreamRule rule = getSampleRule();
        rule.setValue("LOL I AM NOT EVEN A NUMBER");

        Message msg = getSampleMessage();
        msg.addField("something", "90000.23");

        StreamRuleMatcher matcher = getMatcher(rule);
        assertFalse(matcher.match(msg, rule));
    }