package com.vaadin.test.dependencyrewrite;

import java.util.List;

import com.vaadin.server.DependencyFilter;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.ServiceException;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinServletService;

public class MyService extends VaadinServletService {

    public MyService(VaadinServlet servlet,
            DeploymentConfiguration deploymentConfiguration)
            throws ServiceException {
        super(servlet, deploymentConfiguration);
    }

    @Override
    protected List<DependencyFilter> createDependencyFilters()
            throws ServiceException {
        List<DependencyFilter> list = super.createDependencyFilters();
        list.add(new ApplicationDependencyFilter());
        return list;
    }

}

@@ -37,16 +37,44 @@
 write;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -618,22 +618,20 @@
 Filter%3E 
-create
+init
 Dependen
@@ -640,17 +640,16 @@
 Filters(
-)
 %0A       
@@ -644,32 +644,75 @@
 ers(%0A           
+ List%3CDependencyFilter%3E sessionInitFilters)
  throws ServiceE
@@ -764,38 +764,88 @@
 t = 
-super.createDependencyFilters(
+new ArrayList%3C%3E(%0A                super.initDependencyFilters(sessionInitFilters)
 );%0A 

Fix test module for changed dependency filter API