@Test
public void testExternalDuplicateComponent() throws IOException {

  Service ext = createValidApplication("comp1");
  SliderFileSystem sfs = ServiceTestUtils.initMockFs(ext);
  Service app = createValidApplication("comp1");
  Artifact artifact = new Artifact();
  artifact.setType(Artifact.TypeEnum.SERVICE);
  artifact.setId("id");
  app.getComponent("comp1").setArtifact(artifact);
  // duplicate component name okay in the case of SERVICE component
  try {
    ServiceApiUtil.validateAndResolveService(app, sfs, CONF_DNS_ENABLED);
  } catch (IllegalArgumentException e) {
    Assert.fail(NO_EXCEPTION_PREFIX + e.getMessage());
  }
}