LevelImageSupport { public int getSourceWidth() { return sourceWidth; } LevelImageSupport(int sourceWidth, int sourceHeight, ResolutionLevel level); int getSourceWidth(); int getSourceHeight(); int getLevel(); double getScale(); final int getSourceX(int tx); final int getSourceY(int ty); final int getSourceWidth(int destWidth); final int getSourceHeight(int destHeight); final int getSourceCoord(double destCoord, int min, int max);  }
@Test public void testGetSourceWidth() { final int w = levelImageSupport.getSourceWidth(); assertEquals(760, w); assertEquals(1, levelImageSupport.getSourceWidth(0)); assertEquals(1, levelImageSupport.getSourceWidth(1)); assertEquals(w - 1, levelImageSupport.getSourceWidth(w - 1)); assertEquals(w, levelImageSupport.getSourceWidth(w)); assertEquals(w, levelImageSupport.getSourceWidth(w + 1)); }