### Question:
ChordHelper { public int getMaxUnClosedString(Chord chord) { int[] frets = chord.getFrets(); int string = frets.length; while (frets[frets.length - string] == -1) { string -= 1; } return string; }  int[] getBarreChordData(Chord chord); boolean firstStringLeast(Chord chord); int getWithFirstString(Chord chord); int getMaxUnClosedString(Chord chord);  }### Answer:
@Test public void getMaxUnClosedString() throws Exception { assertThat(mChordHelper.getMaxUnClosedString(mChords.get(0)), is(5)); assertThat(mChordHelper.getMaxUnClosedString(mChords.get(1)), is(6)); assertThat(mChordHelper.getMaxUnClosedString(mChords.get(2)), is(5)); assertThat(mChordHelper.getMaxUnClosedString(mChords.get(3)), is(6)); }