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