Replace an "assert" instruction with Assert.assertNotNull