@Test
public void should_add_bonita_api_extensions_resources_found_in_page_fileUpload_widget() throws Exception {

    setUpPageForResourcesTests();
    Component fileUploadComponent = aComponent()
            .withWidgetId("pbUpload")
            .withPropertyValue("url", ParameterType.CONSTANT.getValue(), "../API/extension/upload")
            .build();
    when(componentVisitor.visit(page)).thenReturn(singleton(fileUploadComponent));
    String properties = new String(pageResource.getResources(page.getId()).toString());
    assertThat(properties).contains("[POST|extension/upload]");
}