@Test public void overriddenMethodShouldHaveDifferentPrefix() throws Exception { assertThat(cut.getValueFromTheInternet("yo")).startsWith("delayed"); }
@Override public String getValueFromTheInternet(String id) { sleepFiveSecondsIfUserIsYo(id); return "delayed=" + inner.getValueFromTheInternet(id); }
SomeDelayedClient implements Client { @Override public String getValueFromTheInternet(String id) { sleepFiveSecondsIfUserIsYo(id); return "delayed=" + inner.getValueFromTheInternet(id); } }
SomeDelayedClient implements Client { @Override public String getValueFromTheInternet(String id) { sleepFiveSecondsIfUserIsYo(id); return "delayed=" + inner.getValueFromTheInternet(id); }  }
SomeDelayedClient implements Client { @Override public String getValueFromTheInternet(String id) { sleepFiveSecondsIfUserIsYo(id); return "delayed=" + inner.getValueFromTheInternet(id); }  @Override String getValueFromTheInternet(String id); }
SomeDelayedClient implements Client { @Override public String getValueFromTheInternet(String id) { sleepFiveSecondsIfUserIsYo(id); return "delayed=" + inner.getValueFromTheInternet(id); }  @Override String getValueFromTheInternet(String id);  }