@Test public void test() { context.checking(new Expectations() { { oneOf(person).getAccountId(); will(returnValue("blah")); } }); assertEquals("blah", sut.transform(person)); context.assertIsSatisfied(); }
@Override public String transform(final PersonModelView inTransformType) { return inTransformType.getAccountId(); }
PersonToAccountIdTransformer implements Transformer<PersonModelView, String> { @Override public String transform(final PersonModelView inTransformType) { return inTransformType.getAccountId(); } }
PersonToAccountIdTransformer implements Transformer<PersonModelView, String> { @Override public String transform(final PersonModelView inTransformType) { return inTransformType.getAccountId(); }  }
PersonToAccountIdTransformer implements Transformer<PersonModelView, String> { @Override public String transform(final PersonModelView inTransformType) { return inTransformType.getAccountId(); }  @Override String transform(final PersonModelView inTransformType); }
PersonToAccountIdTransformer implements Transformer<PersonModelView, String> { @Override public String transform(final PersonModelView inTransformType) { return inTransformType.getAccountId(); }  @Override String transform(final PersonModelView inTransformType);  }