public Set<FlowRule> flowtable() {
        JsonNode ents = object.path(ENTRIES);
        if (!ents.isArray()) {

            return ImmutableSet.of();
        }
        ArrayNode entries = (ArrayNode) ents;

        Builder<FlowRule> builder = ImmutableSet.builder();
        entries.forEach(entry -> builder.add(decode(entry, FlowRule.class)));
        return builder.build();
    }
@Test
    public void writeTest() throws JsonProcessingException, IOException {

        FlowTableConfig w = new FlowTableConfig();
        w.init(DID, FlowTableConfig.CONFIG_KEY, mapper.createObjectNode(), mapper, noopDelegate);

        Set<FlowRule> table = ImmutableSet.of(FLOW_RULE);
        w.flowtable(table);

        assertEquals(cfgnode, w.node());
    }