@Test
public void should_not_add_a_resource_which_is_not_a_bonita_resource() throws Exception {

    page.setData(singletonMap("foo", anApiData("../API/path/to/wathever/resource")));
    when(pageResource.getResources(page.getId())).thenReturn(Arrays.asList(""));
    String properties = new String(pagePropertiesBuilder.build(page));
    assertThat(properties).contains("resources=[]");
}