@Test(expected = MavenExecutionException.class)
public void validateConsistentTychoVersionWithDifferentVersionsInSameProject() throws MavenExecutionException {

    TychoMavenLifecycleParticipant tycho = new TychoMavenLifecycleParticipant(new SilentLog());
    MavenProject project = createProject();
    addTychoPlugin(project, "tycho-packaging-plugin", "0.22.0");
    addTychoPlugin(project, "tycho-versions-plugin", "0.23.0");
    tycho.validateConsistentTychoVersion(Arrays.asList(project));
}