Is there a nicer way to write in jUnit
String x = \"foo bar\"; Assert.assertTrue(x.contains(\"foo\"));
assertj variant
import org.assertj.core.api.Assertions; Assertions.assertThat(actualStr).contains(subStr);