@Test
public void should_add_contentType() throws Exception {

    page.setType("layout");
    when(pageResource.getResources(page.getId())).thenReturn(Arrays.asList(""));
    String properties = new String(pagePropertiesBuilder.build(page));
    assertThat(properties).contains("contentType=layout");
}