Assert.assertEquals(s.slave, "slave");
}
@Test(expectedExceptions = ParameterException.class)
public void multiObjectsWithDuplicatesFail() {
ArgsMaster m = new ArgsMaster();
ArgsSlave s = new ArgsSlaveBogus();
String[] argv = { "-master", "master", "-slave", "slave" };
new JCommander(new Object[] { m , s }, argv);
}