### Question:
DependencyValidator { public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } } DependencyValidator( final Dependency dependency ); static String validateVersion( final String version ); static String validateArtifactId( final String artifactId ); static String validateGroupId( final String groupId ); boolean validate(); boolean validateVersion(); boolean validateArtifactId(); boolean validateGroupId(); String getMessage();  }### Answer:
@Test public void testValid() throws Exception { DependencyValidator dependencyValidator = new DependencyValidator( new Dependency( new GAV( "groupId", "artifactId", "1.0" ) ) ); assertTrue( dependencyValidator.validate() ); }