Fibonacci { public static List<Integer> sequenceUpTo(int limit) { List<Integer> sequence = newArrayList(); for (int i = 0; i <= limit; i++) { sequence.add(Fibonacci.of(i)); } return sequence; }  static int of(int i); static List<Integer> sequenceUpTo(int limit);  }
@Test public void should_generate_fibonacci_numbers_up_to_3() { assertThat(Fibonacci.sequenceUpTo(3)).containsExactly(1, 1, 2, 3); }