@Test(expected = EnforcerRuleException.class)
@SuppressWarnings("unchecked")
public void validateExceptionOnFindingPocDependenciesInAPIs() throws Exception {
// Assemble
final ArtifactStub ignoredImplementationDependency = new ArtifactStub();
ignoredImplementationDependency.setGroupId("se.jguru.nazgul.poc.foo");
ignoredImplementationDependency.setArtifactId("foobar-poc");
ignoredImplementationDependency.setVersion("1.0.0");
ignoredImplementationDependency.setScope(Artifact.SCOPE_COMPILE);
ignoredImplementationDependency.setType("jar");
fooApiProject.getDependencyArtifacts().add(ignoredImplementationDependency);
// Act & Assert
unitUnderTest.execute(new MockEnforcerRuleHelper(fooApiProject));