Thanks for your replies, Mike this is the code I use to instantiate the user
User user = new User("email@example.com", "password", new Name("first", "middle", "last"), new Address());
and I call the method like this:
user.getWholeName(); //changed the method name due to your suggestion, thanks
and I get an output of a single null.