@Test
public void should_build_a_page_property_file_when_description_and_displayName_are_not_updated() throws Exception {

    page.setId("aPageId");
    page.setName("aPageName");
    String properties = new String(pagePropertiesBuilder.build(page));
    when(pageResource.getResources(page.getId())).thenReturn(Arrays.asList(""));
    assertThat(properties).contains("contentType=page");
    assertThat(properties).contains("name=custompage_aPageName");
    assertThat(properties).contains("displayName=aPageName" );
    assertThat(properties).contains("description=Page generated with Bonita UI designer");
    assertThat(properties).contains("resources=[]");
}