### Question:
ServicePathFunctionProcessor extends ServiceRegistryFunctionProcessorBase<ServicePathFunctionDescriptor> implements UrlRewriteFunctionProcessor<ServicePathFunctionDescriptor> { @Override public List<String> resolve( UrlRewriteContext context, List<String> parameters ) throws Exception { List<String> results = null; if( parameters != null ) { results = new ArrayList<>( parameters.size() ); for( String parameter : parameters ) { String url = lookupServiceUrl( parameter ); if( url != null ) { Template template = Parser.parseLiteral( url ); List<Path> path = template.getPath(); if( path != null ) { parameter = toString( path ); } } results.add( parameter ); } } return results; }  @Override String name(); @Override List<String> resolve( UrlRewriteContext context, List<String> parameters );  }### Answer:
@Test public void testResolve() throws Exception { ServicePathFunctionProcessor func = new ServicePathFunctionProcessor(); func.initialize( env, desc ); assertThat( func.resolve( ctx, Collections.singletonList("invalid-test-service")), contains( "invalid-test-service" ) ); func.destroy(); }