    @Test
    public void testMojoExecution() throws Exception {

        File testPom = getTestFile("src/test/resources/unit/pom.xml");
        assertNotNull(testPom);
        assertTrue(testPom.exists());

        DependencyMediatorMojo myMojo = (DependencyMediatorMojo) lookupMojo("check", testPom);
        assertNotNull(myMojo);
        myMojo.execute();
    }