Perhaps an exception must be thrown if the version is null? You can use Furnace's Assert.assertNotNull