Your Unit test fails in the setUp method of the test class BankCommon because the number used to create a test BankCard in a CurrentAccount is too long or too short. It has nothing to do with the method testSetName as far as I can tell from the stacktrace.