class StateAwareParameterMap implements Map<String, String[]> {

    @Override
    public int size() {
        return requestMap.size();
    }

}

class StateAwareParameterMapTest {

    private Map<String, String[]> requestMap;
    private Map<String, String[]> responseMap;
    private StateAwareParameterMap map;

    @Test
    public void testSize() {

        expect(requestMap.size()).andReturn(1);

        replay(requestMap, responseMap);
        assertEquals(1, map.size());
        verify(requestMap, responseMap);
    }

}