@Test
public void testSingleValueInArray() throws Exception {

    String[] args = {"--my-array", "foo"};
    Foo foo = new Foo();
    foo.setMyArray(new String[]{"foo"});
    ConfigWrapper<Foo> configWrapper = ConfigUtil.wrapperFor(Foo.class);
    Foo foo2 = configWrapper.parse(new DefaultParser().parse(configWrapper.getOptions(), args));
    Assert.assertArrayEquals(foo.getMyArray(), foo2.getMyArray());
}