/**
* Ensure that the counter function works with a counter with multiple
* values.
*/
public void testMultipleValueCounter() {
StylingFunction function = new CountersFunction();
// =====================================================================
// Set Expectations
// ==========1===========================================================
evaluationContextMock.expects.getCounterValues("cow")
.returns(new int[]{1, 2, 3, 4, 5});
// =====================================================================
// Test Expectations
// =====================================================================
List functionArgs = new ArrayList();
functionArgs.add(getCounterIdentifier("cow"));
functionArgs.add(STYLE_VALUE_FACTORY.getString(null, "."));
functionArgs.add(ListStyleTypeKeywords.DECIMAL);
StyleValue functionValue =
function.evaluate(evaluationContextMock,
"counters", functionArgs);
assertNotNull("Function should return a value", functionValue);
assertTrue("Function should return a StyleString",
functionValue instanceof StyleString);