### Question:
Generator extends AbstractMojo { protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } }  void execute();  }### Answer:
@Test(expected = MojoExecutionException.class) public void testValidateBoolean_WRONG1() throws Exception { System.out.println("testValidateBoolean_WRONG1"); Generator instance = new Generator(); instance.tablePrefix = "tuer"; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
@Test(expected = MojoExecutionException.class) public void testValidateBoolean_WRONG2() throws Exception { System.out.println("testValidateBoolean_WRONG2"); Generator instance = new Generator(); instance.tablePrefix = " "; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
@Test public void testValidateBoolean_TRUE() throws Exception { System.out.println("testValidateBoolean_TRUE"); Generator instance = new Generator(); instance.tablePrefix = "TRUE"; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
@Test public void testValidateBoolean_true() throws Exception { System.out.println("testValidateBoolean_true"); Generator instance = new Generator(); instance.tablePrefix = "true"; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
@Test public void testValidateBoolean_FALSE() throws Exception { System.out.println("testValidateBoolean_FALSE"); Generator instance = new Generator(); instance.tablePrefix = "FALSE"; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
@Test public void testValidateBoolean_false() throws Exception { System.out.println("testValidateBoolean_false"); Generator instance = new Generator(); instance.tablePrefix = "false"; instance.validateBoolean("tablePrefix", instance.tablePrefix); }