### Question:
MediaEntity { public int getWidth() { return width; } 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 testMediaWidth() { Mockito.when(mediaEntity.getWidth()).thenReturn(width); Assert.assertEquals(1, mediaEntity.getWidth()); }
@Test public void testMediaWidthIncorrect() { Mockito.when(mediaEntity.getWidth()).thenReturn(width); Assert.assertNotEquals(11, mediaEntity.getWidth()); }