@Test public void recordExpectationsOnInjectableFinalMockField() { new Expectations() { { mock.getValue(); result = 12; mock.doSomething(); times = 0; } }; assertEquals(12, mock.getValue()); }