public abstract ConventionTask getTask();
@Test
public void testConventionAwareness() {
ConventionTask task = getTask();
assertThat(task.getConventionMapping(), instanceOf(ConventionAwareHelper.class));
assertThat(task.getConventionMapping().getConvention(), sameInstance(getProject().getConvention()));
ConventionMapping conventionMapping = context.mock(ConventionMapping.class);
task.setConventionMapping(conventionMapping);
assertThat(task.getConventionMapping(), sameInstance(conventionMapping));
}