public UiViewSerializer(Class<UiView> t) {
        super(t);
    }
@Test
    public void uiViewSerializerTest() throws JsonProcessingException {
        UiViewSerializer serializer = new UiViewSerializer(UiView.class);
        ObjectMapper mapper = new ObjectMapper();

        SimpleModule module =
                new SimpleModule("UiViewSerializer");
        module.addSerializer(serializer);
        mapper.registerModule(module);
        String ext = mapper.writeValueAsString(uiView1);
        assertEquals("{\"id\":\"uiView1\",\"icon\":\"icon1\",\"cat\":\"NETWORK\",\"label\":\"uiView1\"}", ext);
    }