@Test
public void testDownloadRemoteRepository() throws IOException {
final String jbossReleaseRepo = "http://repository.jboss.org/nexus/content/repositories/releases/";
final MavenArtifact artifact = new MavenArtifact( "org.drools:knowledge-api:jar:5.3.1.Final:compile" );
final HttpURLConnection connection = (HttpURLConnection) new URL( artifact.toURL( jbossReleaseRepo ) ).openConnection();
connection.setRequestMethod( "HEAD" );
try {
final int responseCode = connection.getResponseCode();
if ( responseCode != 200 ) {
//won't fail if you can't get access to external resource