Yes, it can be sufficient. Though, since only the get method public I don't see an issue with this. If we add more code here in the future , it would be good to test that the variables are set correctly since they are pretty important for the logic.