@Test
  public void testCheckForAchievementMilestoneInvalidEmail() {
    dbStub.setValidResults(Achievements.GOLD.getAwardThreshold());
    emailStub.setEmailSent(false);
    test.checkForAchievementMilestone(invalidEmail);

    assertFalse(emailStub.emailSent());
  }
  @Test
  public void testCheckForAchievementMilestoneBronze() {
    dbStub.setValidResults(Achievements.BRONZE.getAwardThreshold());
    emailStub.setEmailSent(false);
    test.checkForAchievementMilestone(validEmail);

    assertTrue(emailStub.emailSent());
  }