Follow the AAA Pattern
Learn about making effective tests by following the AAA pattern.
When we write tests, we visually organize them into three chunks: arrange, act, and assert, also known as triple-A (AAA).
@Test
public void answersArithmeticMeanOfTwoNumbers() {
// Arrange
ScoreCollection collection = new ScoreCollection();
...