@Test public void assertThatMyFirstMockPolicyWork() throws Exception { DataObject dependencyData = new DependencyUser().getDependencyData(); assertEquals("Policy generated data object", dependencyData.getData()); }
public DataObject getDependencyData() { return new Dependency("some data").getData(); }
DependencyUser { public DataObject getDependencyData() { return new Dependency("some data").getData(); } }
DependencyUser { public DataObject getDependencyData() { return new Dependency("some data").getData(); }  }
DependencyUser { public DataObject getDependencyData() { return new Dependency("some data").getData(); }  DataObject getDependencyData(); }
DependencyUser { public DataObject getDependencyData() { return new Dependency("some data").getData(); }  DataObject getDependencyData();  }