SizeViewHolder extends AbstractViewHolder { public int getHeight() { return mMaxHeight - mMinHeight; } SizeViewHolder(int minHeight, int maxHeight); int getHeight(); void setMinHeight(int minHeight); int getMaxHeight(); int getMinHeight(); void setMaxHeight(int maxHeight); @Override void onFinish(boolean done); void onShown(); void onHidden();  }
@Test public void testGetHeight() throws Exception { assertEquals(100, mViewHolder.getHeight()); assertEquals(0, mViewHolder.getMinHeight()); assertEquals(100, mViewHolder.getMaxHeight()); }