{
File pom = getTestFile( "src/test/resources/projects/build-path-expression-pom.xml" );
MavenProject project = getProject( pom );
Build build = project.getBuild();
assertNotNull( "Project should have a build section containing the test resource.", build );
String sourceDirectory = build.getSourceDirectory();
assertNotNull( "Project build should contain a valid source directory.", sourceDirectory );
List resources = build.getResources();
assertNotNull( "Project should contain a build resource.", resources );
assertEquals( "Project should contain exactly one build resource.", 1, resources.size() );
Resource res = (Resource) resources.get( 0 );
assertEquals( "Project resource should be the same directory as the source directory.", sourceDirectory, res.getDirectory() );