assert collection does not contain item January 31, 2023 by Tarik Negate the hasItem assertion assertThat(someCollection, not(hasItem(someItem)))