@Test()
public void testAddTargetWithValidMissingTargetDefinition() {

    Xpp3Dom dom = createGavConfiguration("myGroupId", "myArtifactId", "myVersion");
    MavenSession session = setupMockSession();
    TargetPlatformConfiguration configuration = new TargetPlatformConfiguration();
    try {
        configurationReader.addTargetArtifact(configuration, session, null, dom);
    } catch (MojoExecutionException e) {
        assertTrue(e.getMessage().contains("No target definition file(s) found in project"));
    }
}