Please refer to this question click here.
import static org.hamcrest.text.IsEqualIgnoringCase.equalToIgnoringCase;
List newFriends = select(firendsCollection,having(on(someFriends.class).getDescription(), Matchers.contains(equalToIgnoringCase("michael"))));
equalToIgnoringCase() returns a Matcher. Therefore, we cannot use it in containsString method.