This is a perfect unit test.
@Test
public void Should_Sum_When_ArgumentsAreSmall() {
// given
Sumator sumator = new Sumator();
// when
Integer result = sumator.sum(1, 2);
// then
assertThat(result).isEqualTo(3);
}
Take a look. Take a deep look. If all your unit tests look like this, you’re
saved. Your career