assertEquals("valueone", items.get(0).getValue());
}
@Test
public void test_that_adapting_page_with_wrong_template_returns_null() {
Page wrongPage = mock(Page.class);
when(wrongPage.getProperties()).thenAnswer(new Answer<ValueMap>() {
@SuppressWarnings("serial")
public ValueMap answer(InvocationOnMock invocation) throws Throwable {
return new ValueMapDecorator(new HashMap<String, Object>() {
{
put(NameConstants.NN_TEMPLATE, "/wrong");