- add basical java method override behaviour test case.