PreferredViewPolicy implements Policy { @Override public ExecutionResult execute(PolicyContext context) { return new ExecutionResult(context,true,""); }  @Override ExecutionResult execute(PolicyContext context);  }
@Test public void testPolicy() { PreferredViewPolicy policy = new PreferredViewPolicy(); Assert.assertTrue(policy.execute(null).getStatus()); }