### Question:
ESProjectParsedValidator implements ProjectValidator { @Override public void validate(ProjectParsed projectParsed) throws UnsupportedException { if (projectParsed.getWindow() != null) { throw new UnsupportedException("ElasticSearch don't support Window Operation"); } }  @Override void validate(ProjectParsed projectParsed);  }### Answer:
@Test(expected = UnsupportedException.class) public void testValidate() throws Exception { ESProjectParsedValidator esProjectParsedValidator = new ESProjectParsedValidator(); ProjectParsed projectParsed = mock(ProjectParsed.class); Window window = mock(Window.class); when(projectParsed.getWindow()).thenReturn(window); esProjectParsedValidator.validate(projectParsed); }