fix junit

Signed-off-by: olivier lamy <olamy@apache.org>
diff --git a/indexer-core/src/main/java/org/apache/maven/index/context/IndexUtils.java b/indexer-core/src/main/java/org/apache/maven/index/context/IndexUtils.java
index 78ff5d1..d10461c 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/context/IndexUtils.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/context/IndexUtils.java
@@ -123,8 +123,22 @@
         ArtifactInfo artifactInfo = new ArtifactInfo();
 
         // Add minimal information to the artifact info linking it to the context it belongs to.
-        artifactInfo.setRepository(context.getRepositoryId());
-        artifactInfo.setContext(context.getId());
+        try
+        {
+            artifactInfo.setRepository(context.getRepositoryId());
+        }
+        catch ( UnsupportedOperationException e )
+        {
+            // we ignore that as PartialImplementation can generate this UnsupportedOperationException
+        }
+        try
+        {
+            artifactInfo.setContext(context.getId());
+        }
+        catch ( Exception e )
+        {
+            // we ignore that as PartialImplementation can generate this UnsupportedOperationException
+        }
 
         for ( IndexCreator ic : context.getIndexCreators() )
         {