@Before
 public void setup() {
   environment.setConfiguration(configuration);
   environment.setLog(log);
   environment.setSql(sql);
   DaoTestsHelper.setupConfiguration(configuration);
   webGroupDao = new TestableWebGroupDao(environment);
 }
  @Before
  public void setup()
      throws MalformedURLException, InstantiationException, IllegalAccessException, SQLException {
    environment.setConfiguration(configuration);
    environment.setLog(log);
    environment.setSql(sql);
    DaoTestsHelper.setupConfiguration(configuration);

    webGroupDao = new SingleWebGroupDao(environment);

    when(sql.sqlQuery(anyString())).thenReturn(result);
    when(result.next()).thenReturn(true, false);
  }