### Question:
NewsEntity { public String getSummary() { return summary; }  String getTitle(); String getSummary(); String getArticleUrl(); String getByline(); String getPublishedDate(); List<MediaEntity> getMediaEntityList();  }### Answer:
@Test public void testNewsSummary(){ Mockito.when(newsEntity.getSummary()).thenReturn(summary); Assert.assertEquals("Testing summary",newsEntity.getSummary()); }
@Test public void testNewsSummaryIncorrect(){ Mockito.when(newsEntity.getSummary()).thenReturn(summary); Assert.assertNotEquals("summary",newsEntity.getSummary()); }