@Override
    public ValidationResult validate(Object value) {
        if (value instanceof Map)
            return new ValidationResult.ValidationPassed();
        else
            return new ValidationResult.ValidationFailed("Value is not a Map!");
    }
@Test
    public void testValidate() throws Exception {
        Validator v = new MapValidator();

        assertFalse(v.validate(null).passed());
        assertFalse(v.validate(Collections.emptyList()).passed());
        assertFalse(v.validate(9001).passed());
        assertFalse(v.validate("foo").passed());

        Map<String, String> actuallyFilledMap = ImmutableMap.of(
                "foo", "bar",
                "lol", "wut");

        assertTrue(v.validate(actuallyFilledMap).passed());
        assertTrue(v.validate(Collections.emptyMap()).passed());
    }