@Test
public void testHttp2GenericEntity() throws DocumentParseException {

    GenericEntityLoader loader = new GenericEntityLoader();
    Bundle bundle = new Bundle();
    Document document = DocumentTools.INSTANCE.parse(HTTP2_CLIENT_CONFIG);
    loader.load(bundle, document.getDocumentElement());
    GenericEntity genericEntity = bundle.getGenericEntities().get("default");
    assertEquals("com.l7tech.external.assertions.http2.routing.model.Http2ClientConfigurationEntity",
            genericEntity.getEntityClassName());
    assertNotNull(genericEntity.getValueXml());
    assertThat(genericEntity.getValueXml(), containsString("<void property=\"tlsVersion\">"));
    assertThat(genericEntity.getValueXml(), containsString("<void property=\"readTimeout\">"));
    assertTrue(genericEntity.getAnnotations().contains(new Annotation(AnnotationType.BUNDLE_HINTS)));
}