public void testConvertURLProperties() throws Exception {
StaticAssetPathServiceImpl staticAssetPathService = new StaticAssetPathServiceImpl();
staticAssetPathService.setStaticAssetUrlPrefix("cmsstatic");
staticAssetPathService.setStaticAssetEnvironmentUrlPrefix("http://images.mysite.com/myapp/cmsstatic");
String url = staticAssetPathService.convertAssetPath("/cmsstatic/product.jpg","myapp", false);
assertTrue(url.equals("http://images.mysite.com/myapp/cmsstatic/product.jpg"));
staticAssetPathService.setStaticAssetEnvironmentUrlPrefix("http://images.mysite.com");
url = staticAssetPathService.convertAssetPath("/cmsstatic/product.jpg","myapp", false);
assertTrue(url.equals("http://images.mysite.com/product.jpg"));