@Test
public void getArray() throws Exception {

    assertArrayEquals(parameters.getArray("test"), null);
    assertArrayEquals(parameters.getArray("test", new String[] { "test" }), new String[] { "test" });
    ParametersMap map = new ParametersMap();
    map.put("test1", new Object[] {"abc", "bcd"});
    map.put("test2", "abc");
    assertArrayEquals(map.getArray("test1", new String[] { "test" }), new Object[] {"abc", "bcd"});
    assertArrayEquals(map.getArray("test2", new String[] { "test" }), new String[] { "abc" });
}