@Test(expected = ArgumentNotValid.class)
public void testAddDuplicateConfiguration() {

    DomainConfiguration defaultConfig = DomainConfigurationTest.createDefaultDomainConfiguration();
    Job job = createDefaultJob(defaultConfig);
    job.addConfiguration(defaultConfig);
}