### Question:
MediaEntity { public int getHeight() { return height; } MediaEntity(String url, String format, int height, int width, String type, String subType, String caption, String copyright); String getUrl(); String getFormat(); int getHeight(); int getWidth(); String getType(); String getSubType(); String getCaption(); String getCopyright();  }### Answer:
@Test public void testMediaHeight() { Mockito.when(mediaEntity.getHeight()).thenReturn(height); Assert.assertEquals(2, mediaEntity.getHeight()); }
@Test public void testMediaHeightIncorrect() { Mockito.when(mediaEntity.getHeight()).thenReturn(height); Assert.assertNotEquals(12, mediaEntity.getHeight()); }