### Question:
MediaEntity { public String getUrl() { return url; } 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 testMediaUrl() { Mockito.when(mediaEntity.getUrl()).thenReturn(url); Assert.assertEquals("www.test.com", mediaEntity.getUrl()); }
@Test public void testMediaUrlIncorrect() { Mockito.when(mediaEntity.getUrl()).thenReturn(url); Assert.assertNotEquals(" testing www.test.com", mediaEntity.getUrl()); }