@Test
public void should_add_bonita_api_extensions_resources_found_in_page_data_table_properties() throws Exception {

    setUpPageForResourcesTests();
    Component dataTableComponent = aComponent()
            .withPropertyValue("apiUrl", "constant", "../API/extension/car")
            .build();
    when(componentVisitor.visit(page)).thenReturn(singleton(dataTableComponent));
    String properties = new String(pageResource.getResources(page.getId()).toString());
    assertThat(properties).contains("[GET|extension/car]");
}