}
@Test
public void testView_setAttributesFromPairs() throws Exception {
HTMLPage view = new HTMLPage();
view.setAttributesFromPairs(new String[] { "name", "num" }, new Object[] { "John", 21 });
Map<String, Object> attributes = view.getAttributes();
assertNotNull(attributes);
assertEquals(2, attributes.size());
assertEquals("John", attributes.get("name"));
assertEquals(21, attributes.get("num"));
}