public void testGenerateAppList() throws Exception {
      mTestInstance.setupAppInfos();
      assertEquals(2, mTestInstance.mAppInfos.size());

      assertTrue(mTestInstance.generateAppList().contains("App 1,app1\n"));
      assertTrue(mTestInstance.generateAppList().contains("App 2,key2\n"));
    }
    public void testParseOutputFile_fail() throws Exception {
      mTestInstance.setupAppInfos();
      assertEquals(2, mTestInstance.mAppInfos.size());

      mTestInstance.parseOutputFile("app1|1234\n");
      assertTrue(mTestInstance.shouldTakeBugreport());
      assertEquals(new Integer(1234), mTestInstance.mAppInfos.get("app1").getTime());
      assertNull(mTestInstance.mAppInfos.get("app2").getTime());
    }
 public void testSetupAppInfos() throws Exception {
   mTestInstance.setupAppInfos();
   assertEquals(2, mTestInstance.mAppInfos.size());
   assertNotNull(mTestInstance.mAppInfos.get("app1"));
   assertEquals("App 1", mTestInstance.mAppInfos.get("app1").getName());
   assertEquals("app1", mTestInstance.mAppInfos.get("app1").getOutputKey());
   assertEquals("app1", mTestInstance.mAppInfos.get("app1").getPostKey());
   assertNotNull(mTestInstance.mAppInfos.get("app2"));
   assertEquals("App 2", mTestInstance.mAppInfos.get("app2").getName());
   assertEquals("app2", mTestInstance.mAppInfos.get("app2").getOutputKey());
   assertEquals("key2", mTestInstance.mAppInfos.get("app2").getPostKey());
 }