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