added testmethod.java