Fluent tests in Java with AssertJ

I haven't been using them extensively, but recently I started to take advantage of the AssertJ library.

I want to draw your attention to how easy and pleasant it is to write and read tests written in AssertJ.

Just take a look at the tests I wrote for a collection.

void returnsUserByCompany() {
    // given
    var users = givenUsers(
        new User("Mark", "Facebook"),
        new User("Eduardo", "Facebook"),
        new User("Elon", "X"),

    // when
    List<User> user = getUserByCompany("Facebook");

    // then
        .contains("Mark", "Eduardo")

For more information, take a look at the library docs: https://assertj.github.io/doc/