@Test
public void should_add_bonita_resource_found_in_page_data() throws Exception {

    page.setData(singletonMap("foo", anApiData("/bonita/API/living/application-menu")));
    when(pageResource.getResources(page.getId())).thenReturn(Arrays.asList("GET|living/application-menu"));
    String properties = new String(pagePropertiesBuilder.build(page));
    assertThat(properties).contains("resources=[GET|living/application-menu]");
}