* Test of setMapPositive method, of class OdfNumberNumberStyle.
*/
@Test
public void testSetMapPositive() {
Node node;
StyleMapElement mapNode;
LOG.info("setMapPositive");
String mapName = "positiveMap";
OdfNumberPercentageStyle instance = new OdfNumberPercentageStyle(dom,
"#0", "fstyle");
instance.setMapPositive(mapName);
node = instance.getLastChild();
Assert.assertNotNull(node);
Assert.assertTrue(node instanceof StyleMapElement);
mapNode = (StyleMapElement) node;
Assert.assertEquals("value()>0", mapNode.getStyleConditionAttribute());
Assert.assertEquals(mapName, mapNode.getStyleApplyStyleNameAttribute());
}