Example 4:

The properties "name" & "dateOfBirth" are added to the JRobo class together with accessor methods which JRoboTest calls. Note: Open the browsers Java Console to see the output!