@Test // Uses of Mockito API: 5
  public void returningLastArgument() {
    new Expectations() {
      {
        mockedList.set(anyInt, anyString);
        result =
            new Delegate() {
              String lastArg(int i, String s) {
                return s;
              }
            };
      }
    };

    assertEquals("test", mockedList.set(1, "test"));
  }