### Question:
BreakContinue { public static int unlabeledBreak() { String searchName = "Wilson"; int counter = 0; List<String> names = Arrays.asList("John", "Peter", "Robert", "Wilson", "Anthony", "Donald", "Richard"); for (String name : names) { counter++; if (name.equalsIgnoreCase(searchName)) { break; } } return counter; }  static int unlabeledBreak(); static int unlabeledBreakNestedLoops(); static int labeledBreak(); static int unlabeledContinue(); static int labeledContinue();  }### Answer:
@Test public void whenUnlabeledBreak_ThenEqual() { assertEquals(4, unlabeledBreak()); }