### Question:
MediaEntity { public String getSubType() { return subType; } 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 testMediaSubType() { Mockito.when(mediaEntity.getSubType()).thenReturn(subType); Assert.assertEquals("testing subtype", mediaEntity.getSubType()); }
@Test public void testMediaSubTypeIncorrect() { Mockito.when(mediaEntity.getSubType()).thenReturn(subType); Assert.assertNotEquals("subtype", mediaEntity.getSubType()); }