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