This blog by velo from Sonatype describes how to profile your tests using Maven.
It configures the surefire plugin to point to the yourkit installation, then configure the surefire plugin to use the yourkit agent dll:
<profile>
<!-- http://www.yourkit.com/docs/80/help/agent.jsp -->
<id>yourkit-profile</id>
<properties>
<yourkit.home>C:\Arquivos de programas\YourKit Java Profiler 8.0.13</yourkit.home>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-agentpath:"${yourkit.home}\bin\win32\yjpagent.dll"</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Later in the same blog it describes how to configure the build to use the API to take memory snapshots. That should allow you to do the correlation you described.