<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-assert</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
import static org.assertj.core.api.Assertions.assertThat;
...
@Test
public void testExample() {
String text = "Hello World";
assertThat(text).startsWith("Hello").endsWith("World");
}
import static org.junit.Assert.*;
...
@Test
public void testExample() {
int result = calculateResult();
assertEquals(42, result);
}