source: class ConfigUtilTest {
  
      private static final Logger log;
  
      @Test
      public void testSingleValueInArray() throws Exception {
  
target:         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());
      }
  
  }