### Question:
Chord { public int getLargestFret() { int largest = -1; for (int i = 0; i < frets.length; i++) { int fret = frets[i]; if (fret < 1) { continue; } if (largest == -1) { largest = fret; continue; } if (fret > largest) { largest = fret; } } return largest; } Chord();  Chord(int[] frets);  Chord(int[] frets, int[] fingers); int[] getFrets(); void setFrets(int[] frets); int[] getFingers(); void setFingers(int[] fingers); boolean isEmptyString(); boolean isClosedString(); int getLeastFret(); int getLargestFret(); int getFret(int string); @Override String toString(); static final int STRING; }### Answer:
@Test public void getLargestFret() throws Exception { assertThat(mChords.get(0).getLargestFret(), is(3)); assertThat(mChords.get(1).getLargestFret(), is(5)); assertThat(mChords.get(2).getLargestFret(), is(8)); assertThat(mChords.get(3).getLargestFret(), is(10)); }