override getText() to protect throw NPE when run unit test
remove comment and remove unused import