public void testActualStegImage() throws DecodingException { Options opts = new Options(); opts.inScaled = false; Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.steg, opts); PngStegoImage image = new PngStegoImage(); image.setImageBitmap(bitmap); image.decode(); assertTrue(image.hasEmbeddedData()); }