@Override
    public ArrayNode encode(Iterable<MeasurementOption> entities,
            CodecContext context) {
        ArrayNode an = context.mapper().createArrayNode();
        entities.forEach(node -> an.add(node.name()));

        return an;
    }
@Test
    public void testEncodeIterableOfMeasurementOptionCodecContext() {
        List<MeasurementOption> moList = new ArrayList<>();
        moList.add(MeasurementOption.FRAME_DELAY_BACKWARD_MAX);
        moList.add(MeasurementOption.FRAME_DELAY_FORWARD_BINS);

        ArrayNode an =
                context.codec(MeasurementOption.class).encode(moList, context);

        assertEquals(MeasurementOption.FRAME_DELAY_BACKWARD_MAX.toString(),
                an.get(0).asText());
        assertEquals(MeasurementOption.FRAME_DELAY_FORWARD_BINS.toString(),
                an.get(1).asText());
    }