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