@Test
 public void shouldInstallAndUninstallProjectBuilderWithValidationBuilderMissing()
     throws Exception {
   // pre-conditions
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(
           projectMonitor.getProject(), ProjectBuilderUtils.VALIDATOR_BUILDER_ID));
   ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID);
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.installProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.installProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
 }
 @Test
 public void shouldVerifyProjectBuilderIsInstalled() throws Exception {
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(
           projectMonitor.getProject(), "org.eclipse.jdt.core.javabuilder"));
 }
 @Test
 public void shouldInstallProjectFacetAndCheckPositionIsLast() throws Exception {
   // pre-conditions
   ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID);
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
   // operation
   ProjectBuilderUtils.installProjectBuilder(projectMonitor.getProject(), BUILDER_ID);
   // post-conditions
   int p = ProjectBuilderUtils.getBuilderPosition(projectMonitor.getProject(), BUILDER_ID);
   assertThat(p, equalTo(2));
   final String[] names = getCommandNames(projectMonitor.getProject());
   assertThat(names.length, equalTo(4));
   for (int i = 0; i < names.length; i++) {
     assertThat(names[i], notNullValue());
   }
 }
 @Test
 public void shouldInstallAndUninstallProjectBuilderWithValidationBuilderAlreadyInstalled()
     throws Exception {
   // pre-conditions
   projectMonitor.replaceDotProjectFileWith("dotProject.txt");
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(
           projectMonitor.getProject(), ProjectBuilderUtils.VALIDATOR_BUILDER_ID));
   ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID);
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.installProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.installProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(
           projectMonitor.getProject(), ProjectBuilderUtils.VALIDATOR_BUILDER_ID));
   Assert.assertTrue(
       "Wrong result",
       ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.uninstallProjectBuilder(projectMonitor.getProject(), BUILDER_ID));
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
 }
 @Test
 public void shouldVerifyProjectBuilderIsNotInstalled() throws Exception {
   Assert.assertFalse(
       "Wrong result",
       ProjectBuilderUtils.isProjectBuilderInstalled(projectMonitor.getProject(), BUILDER_ID));
 }