### Question:
DriverDefValidator { public boolean validate( DriverDef driverDef ) { return hasValue( driverDef.getUuid( ) ) && hasValue( driverDef.getName( ) ) && hasValue( driverDef.getDriverClass( ) ) && hasValue( driverDef.getArtifactId( ) ) && hasValue( driverDef.getGroupId( ) ) && hasValue( driverDef.getVersion( ) ); }  boolean validate( DriverDef driverDef );  }### Answer:
@Test public void testValidate() { assertTrue( validator.validate( driverDef ) ); }
@Test public void testValidateUuid( ) { driverDef.setUuid( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setUuid( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }
@Test public void testValidateName() { driverDef.setName( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setName( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }
@Test public void testValidateDriverClass() { driverDef.setDriverClass( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setDriverClass( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }
@Test public void testValidateGroupId() { driverDef.setGroupId( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setGroupId( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }
@Test public void testValidateArtifactId() { driverDef.setArtifactId( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setArtifactId( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }
@Test public void testValidateVersion() { driverDef.setVersion( null ); assertFalse( validator.validate( driverDef ) ); driverDef.setVersion( EMPTY_VALUE ); assertFalse( validator.validate( driverDef ) ); }