Create test.java

this is test.java and this has the function getter and setter.