}
@Override public void prepare() {
describe(ProjectsService.class,
new When("requesting") {{
it("should return the correct path", new Test() {
@Override public void run() throws Throwable {
ProjectsService svc = stub(ProjectsService.class,
p.getProperty("company"),
p.getProperty("emailAddress"),
p.getProperty("password"));
expectThat(svc.getPath()).equalTo("projects");
}
});
it("should return an ArrayList of projects", new Test() {
@Override public void run() throws Throwable {
ProjectsService svc = stub(ProjectsService.class,
p.getProperty("company"),
p.getProperty("emailAddress"),
p.getProperty("password"));