@@ -0,0 +1,956 @@
+package org.apache.aries.subsystem.core.internal;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNull;%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.net.MalformedURLException;%0A%0Aimport org.junit.Test;%0A%0Apublic class LocationTest %7B%0A%09@Test%0A%09public void testAnyLocationString() %7B%0A%09%09String locationStr = %22anyLocation%22;%0A%09%09try %7B%0A%09%09%09Location location = new Location(locationStr);%0A%09%09%09assertNull(%22Wrong symbolic name%22, location.getSymbolicName());%0A%09%09%09assertEquals(%22Wrong value%22, locationStr, location.getValue());%0A%09%09%09assertNull(%22Wrong version%22, location.getVersion());%0A%09%09%09try %7B%0A%09%09%09%09location.open();%0A%09%09%09%09fail(%22Opening a location that does not represent a URL should fail%22);%0A%09%09%09%7D%0A%09%09%09catch (MalformedURLException e) %7B%0A%09%09%09%09// Okay%0A%09%09%09%7D%0A%09%09%09catch (Throwable t) %7B%0A%09%09%09%09t.printStackTrace();%0A%09%09%09%09fail(%22Wrong exception%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09catch (Throwable t) %7B%0A%09%09%09t.printStackTrace();%0A%09%09%09fail(%22Any location string must be supported%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Test support for any location string.