BitMapper { public File makeFileName(int ordinal, Kind kind, Style style) { return makeFileName(ordinal, kind + Name.D + style); } BitMapper(File dir, Handler handler, Point displaySize, int thumbWidth); void checkIoPermissions(); Bitmap readFullWithFallback(int index, Kind kind); Uri getCameraPhotoUri(int ordinal); File makeCameraPhotoFile(int ordinal); File makeFileName(int ordinal, Kind kind, Style style); boolean exists(int ordinal, Kind kind, Style style); Bitmap readBitmap(int ordinal, Kind kind, Style style); void writeBitmap(int ordinal, Kind kind, Style style, Bitmap bitmap); void writeBytes(int ordinal, Kind kind, Style style, byte[] bytes); void dealWithCameraResult(
            final ObservedList<Moment> moments, final Moment moment);  }
@Test public void makeFileName() { assertEquals( SCRATCH_DIR + "/REMOTE_THUMB_0011.jpg", mBitMapper.makeFileName( 11, Moment.Kind.REMOTE, Moment.Style.THUMB).toString()); assertEquals( SCRATCH_DIR + "/LOCAL_THUMB_0022.jpg", mBitMapper.makeFileName( 22, Moment.Kind.LOCAL, Moment.Style.THUMB).toString()); assertEquals( SCRATCH_DIR + "/LOCAL_FULL_0033.jpg", mBitMapper.makeFileName( 33, Moment.Kind.LOCAL, Moment.Style.FULL).toString()); }