@Test
public void applyPlugin() {

    final Project project = ProjectBuilder.builder().build();
    project.getPlugins().apply(NullfreePlugin.class);
    Assert.assertThat(project.getTasks().findByName("nullfree"), IsNull.notNullValue());
}