### Question:
VariableSampleSource implements SampleSource { @Override public int getHeight() { return height; } VariableSampleSource(Variable variable, Array slice); @Override int getWidth(); @Override int getHeight(); @Override double getSample(int x, int y); @Override boolean isFillValue(int x, int y);  }### Answer:
@Test public void testGetHeight() { final int height = sampleSource.getHeight(); assertEquals(HEIGHT, height); }