LevelImageSupport { public int getSourceHeight() { return sourceHeight; } 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 testGetSourceHeight() { final int h = levelImageSupport.getSourceHeight(); assertEquals(1120, h); assertEquals(1, levelImageSupport.getSourceHeight(0)); assertEquals(1, levelImageSupport.getSourceHeight(1)); assertEquals(h - 1, levelImageSupport.getSourceHeight(h - 1)); assertEquals(h, levelImageSupport.getSourceHeight(h)); assertEquals(h, levelImageSupport.getSourceHeight(h + 1)); }