properties.setProperty("key1", "value1");
properties.setProperty("key2", "value2");
final JUnitTest suite = new JUnitTest("Hello");
suite.setProperties(properties);
final XmlNode propertiesNode = mockXmlNode();
new EasyMockTemplate(targetNode, propertiesNode) {
@Override protected void expectations() throws Exception {
expect(targetNode.addNewNode(PROPERTIES)).andReturn(propertiesNode);
XmlAttributes attributes1 = attributes(name(ATTR_NAME).value("key1"), name(ATTR_VALUE).value("value1"));
expect(propertiesNode.addNewNode(PROPERTY, attributes1)).andReturn(mockXmlNode());
XmlAttributes attributes2 = attributes(name(ATTR_NAME).value("key2"), name(ATTR_VALUE).value("value2"));