title: Error in JUnit testing of service
body: <p>Code:</p>
  
  <pre><code>public class Testprogdi extends ActivityInstrumentationTestCase2 {
  
      public Testprogdi(String pkg, Class activityClass) {
          super(pkg, activityClass);
          // TODO Auto-generated constructor stub
      }
  
      Context mContext;
  
      Registration reg = new Registration();
  
      public void setUp(){
          try {
              super.setUp();
          } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
          mContext = this.getInstrumentation().getContext();
      }   
  
      public void test(){
          Assert.assertNotNull(reg.pass_url());}
      public void test1(){
          Assert.assertTrue(reg.pass_url().startsWith("www"));}
      public void test2(){
          Assert.assertTrue(reg.pass_url().startsWith("http"));
      }
  }
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>junit.framework.AssertionFailedError: Class com.android.deviceintelligence.test.Testprogdi has no public constructor TestCase(String name) or TestCase()
  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
  at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
  at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
  at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)`
  </code></pre>
  
  <p>I am getting the same error for all my test classes. </p>