@Override
    public boolean isMatchedWithFilter(SAPropertyFilter filter) {
        return "Android".equals(filter.getEventJson(SAPropertyFilter.LIB).optString("$lib"));
    }
@Test
    public void isMatchedWithFilter() {
        InternalCustomPropertyPlugin customPropertyPlugin = new InternalCustomPropertyPlugin();
        SAPropertyFilter propertyFilter = new SAPropertyFilter();
        JSONObject libProperty = new JSONObject();
        try {
            libProperty.put("$lib", "Android");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        propertyFilter.setEventJson(SAPropertyFilter.LIB, libProperty);
        Assert.assertTrue(customPropertyPlugin.isMatchedWithFilter(propertyFilter));
        try {
            libProperty.put("$lib", "iOS");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        propertyFilter.setEventJson(SAPropertyFilter.LIB, libProperty);
        Assert.assertFalse(customPropertyPlugin.isMatchedWithFilter(propertyFilter));
    }