public void testGoodAnswerGameToBeWon() {
    System.out.println("Test 1 : gameToBeWon");
    Game gameToBeWon = new Game(new GameMaster(
        DefaultValues.DEFAULTATTEMPTCOMBINATION1), new Board());
    int attemptsCount = 0;

    // 1. Wrong combinations input.
    Answer answer = gameToBeWon
        .giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION2);
    attemptsCount++;
    assertEquals(true, answer.more_attempts);
    assertEquals(false, answer.target_found);
    assertEquals(
        gameToBeWon.getAnswerCombinationFromGameMaster(
            DefaultValues.DEFAULTATTEMPTCOMBINATION2).getBlackCount(),
        answer.nb_blacks);
    assertEquals(
        gameToBeWon.getAnswerCombinationFromGameMaster(
            DefaultValues.DEFAULTATTEMPTCOMBINATION2).getWhiteCount(),
        answer.nb_whites);

    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION3);
    attemptsCount++;
    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION2);
    attemptsCount++;
    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION3);
    attemptsCount++;

    assertEquals(true, answer.more_attempts);
    assertEquals(false, answer.target_found);
    assertEquals(
        gameToBeWon.getAnswerCombinationFromGameMaster(
            DefaultValues.DEFAULTATTEMPTCOMBINATION3).getBlackCount(),
        answer.nb_blacks);
    assertEquals(
        gameToBeWon.getAnswerCombinationFromGameMaster(
            DefaultValues.DEFAULTATTEMPTCOMBINATION3).getWhiteCount(),
        answer.nb_whites);

    // 2. Right combination input
    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION1);
    attemptsCount++;

    assertEquals(true, answer.more_attempts);
    assertEquals(true, answer.target_found);
    assertEquals(5, answer.nb_blacks);
    assertEquals(0, answer.nb_whites);
    assertEquals(attemptsCount, answer.remaining_attempts);

    // 3. Another combination attempt (a wrong one).
    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION2);
    attemptsCount++;
    assertEquals(true, answer.more_attempts);
    assertEquals(true, answer.target_found);
    assertEquals(attemptsCount - 1, answer.remaining_attempts);

    // 4. Another combination attempt the right one).
    answer = gameToBeWon.giveAnswer(DefaultValues.DEFAULTATTEMPTCOMBINATION1);
    attemptsCount++;
    assertEquals(true, answer.more_attempts);
    assertEquals(true, answer.target_found);
    assertEquals(attemptsCount - 2, answer.remaining_attempts);
  }