I guess it is already null, if you just want to ensure it is, call Assert.assertNull(alert.getText())