SomeModel model = new SomeModel();
model.setName("John");
model.setNum(21);
HTMLPage view = new HTMLPage().withModel(model);
Map<String, Object> attributes = view.getAttributes();
assertNotNull(attributes);
assertEquals(2, attributes.size());
assertEquals("John", attributes.get("name"));
assertEquals(21, attributes.get("num"));
}