### Question:
MessageConsoleWhiteListImpl implements MessageConsoleWhiteList { @Override public boolean contains( String perspective ) { return allowedPerspectives.contains( perspective ); } MessageConsoleWhiteListImpl(); @Override boolean contains( String perspective );  }### Answer:
@Test public void denial() throws Exception { assertFalse(list.contains("Not white listed")); }
@Test public void library() throws Exception { assertTrue(list.contains("LibraryPerspective")); }
@Test public void authoring() throws Exception { assertTrue(list.contains("AuthoringPerspective")); }
@Test public void authoringNoContext() throws Exception { assertTrue(list.contains("AuthoringPerspectiveNoContext")); }