@@ -0,0 +1,887 @@
+package blade.migrate.test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport blade.migrate.api.Migration;%0Aimport blade.migrate.api.Problem;%0A%0Aimport java.io.File;%0A%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0A%0Aimport org.osgi.framework.BundleContext;%0Aimport org.osgi.framework.FrameworkUtil;%0Aimport org.osgi.framework.ServiceReference;%0A%0Apublic class UserServicesThrownExceptionsChangesTest %7B%0A%0A%09@Test%0A%09public void testFindProblems() throws Exception %7B%0A%09%09ServiceReference%3CMigration%3E sr = context%0A%09%09%09.getServiceReference(Migration.class);%0A%09%09Migration m = context.getService(sr);%0A%09%09List%3CProblem%3E problems = m%0A%09%09%09%09.findProblems(new File(%0A%09%09%09%09%09%09%22../blade.migrate.liferay70/projects/filetests/UserServicesThrownExceptionsChangesTest.java%22));%0A%0A%09%09assertEquals(2, problems.size());%0A%09%7D%0A%0A%09private final BundleContext context = FrameworkUtil.getBundle(%0A%09%09this.getClass()).getBundleContext();%0A%0A%7D

add osgi unit test