@Test
public void testWrappedMavenProject() throws IOException {

    String artifactId = "test";
    String version = "x.x.x";
    File pomFile = folder.newFile("pom.xml");
    String outputDir = folder.newFolder("outputdir").getName();
    Build build = new Build();
    build.setOutputDirectory(outputDir);
    MavenProject mavenProject = new MavenProject();
    mavenProject.setArtifactId(artifactId);
    mavenProject.setVersion(version);
    mavenProject.setFile(pomFile);
    mavenProject.setBuild(build);
    WrappedMavenProject wrappedMavenProject = new WrappedMavenProject(mavenProject);
    assertThat(wrappedMavenProject.getBuildDirectory()).isEqualTo(outputDir);
    assertThat(wrappedMavenProject.getConfigFile()).isEqualTo(pomFile);
    assertThat(wrappedMavenProject.getRawProject()).isEqualTo(mavenProject);
    assertThat(wrappedMavenProject.getProjectId()).isEqualTo(artifactId);
    assertThat(wrappedMavenProject.getVersion()).isEqualTo(version);
}