@Override
    public void setUp() throws Exception {
      super.setUp();

      // Invoke subclass's method to create the bitmap
      mBitmap = createBitmap();
    }
    @Override
    public void setUp() throws Exception {
      super.setUp();

      // For bitmap resources
      Context context = getContext();
      Assert.assertNotNull(context);
      mResources = context.getResources();
      Assert.assertNotNull(mResources);
    }