### Question:
MediaEntity { public String getCaption() { return caption; } 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 testMediaCaption() { Mockito.when(mediaEntity.getCaption()).thenReturn(caption); Assert.assertEquals("testing caption", mediaEntity.getCaption()); }
@Test public void testMediaCaptionIncorrect() { Mockito.when(mediaEntity.getCaption()).thenReturn(caption); Assert.assertNotEquals("caption", mediaEntity.getCaption()); }