Sonar: Use assertNotNull instead of assertTrue