@Test
public void should_add_bonita_api_extensions_resources_found_in_page_button_with_POST_action() throws Exception {

    setUpPageForResourcesTests();
    Component dataTableComponent = aComponent()
            .withPropertyValue("action", "constant", "POST")
            .withPropertyValue("url", ParameterType.INTERPOLATION.getValue(), "../API/extension/user")
            .build();
    when(componentVisitor.visit(page)).thenReturn(singleton(dataTableComponent));
    String properties = new String(pageResource.getResources(page.getId()).toString());
    assertThat(properties).contains("[POST|extension/user]");
}