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