    @Test
    public void testMarshallGatewayBean() throws Exception {

        GatewayBean bean = createBean(GatewayBean.class);
        XContentBuilder builder = EsMarshalling.marshall(bean);
        Assert.assertEquals("{\"id\":\"ID\",\"name\":\"NAME\",\"description\":\"DESCRIPTION\",\"type\":\"REST\",\"configuration\":\"CONFIGURATION\",\"createdBy\":\"CREATEDBY\",\"createdOn\":1,\"modifiedBy\":\"MODIFIEDBY\",\"modifiedOn\":1}", Strings.toString(builder));
    }