Writing tests using JUnit on a general Car class in Java