### Question:
Task { public int getTimeMs() { return timeMs; } Task(final int timeMs); int getId(); int getTimeMs(); @Override String toString();  }### Answer:
@Test public void testTimeMs() { for (var i = 0; i < 10; i++) { assertEquals(this.expectedExecutionTime * i, this.factory.apply(i).getTimeMs()); } }
@Test public void testTimeMs() { for (int i = 0; i < 10; i++) { assertEquals(this.expectedExecutionTime * i, this.factory.apply(i).getTimeMs()); } }