O seguinte trecho de código não estava compilando com os imports que haviam sido previamente citados :
import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.hamcrest.Matchers.*;
Caso haja erro de compilação no trecho a seguir:
assertThat(maiores, hasItems(
new Lance(maria, 400),
new Lance(joao, 300),
new Lance(maria, 200)
));
Será necessário adicionar o import abaixo:
import static org.hamcrest.Matchers.hasItems;