### Question:
NewsEntity { public String getPublishedDate() { return publishedDate; }  String getTitle(); String getSummary(); String getArticleUrl(); String getByline(); String getPublishedDate(); List<MediaEntity> getMediaEntityList();  }### Answer:
@Test public void testNewsDateIncorrect(){ Mockito.when(newsEntity.getPublishedDate()).thenReturn(publishedDate); Assert.assertNotEquals("29-02-2019",newsEntity.getPublishedDate()); }
@Test public void testNewsDate(){ Mockito.when(newsEntity.getPublishedDate()).thenReturn(publishedDate); Assert.assertEquals("29-01-2019",newsEntity.getPublishedDate()); }