### Question:
HiveChord extends ChordBase implements IWeightable, IInfluenceable, Serializable { public String getChordName(){ String name = this.chordName; if(this.chordName.equalsIgnoreCase("_") || this.chordName.equalsIgnoreCase("")){ return normalizeNotesToSharps(this.chordName); } try { if ((name.charAt(1) + "").equalsIgnoreCase("3") || (name.charAt(1) + "").equalsIgnoreCase("4") || (name.charAt(1) + "").equalsIgnoreCase("5")) { StringBuilder sb = new StringBuilder(this.chordName); name = sb.deleteCharAt(1).toString(); } if (name.length() > 2) { if ((name.charAt(2) + "").equalsIgnoreCase("3") || (name.charAt(2) + "").equalsIgnoreCase("4") || (name.charAt(2) + "").equalsIgnoreCase("5")) { StringBuilder sb = new StringBuilder(this.chordName); name = sb.deleteCharAt(2).toString(); } } }catch (Exception e){ System.out.println("THIS IS THE PROBLEM CHORD: " + name); throw e; } return normalizeNotesToSharps(name); } HiveChord();  HiveChord(String chordName); boolean isEqual(HiveChord chord); boolean isEqual(String chordName); Integer getId(); void setId(Integer id); @Override void setFileName(String fileName); @Override String getFileName(); String getChordName(); String getRawChordName(); void setChordName(String chordName); String extractRoot(String chordName); boolean isEqualOrTriadMatch(HiveChord harmonicLoopChord); boolean hasMatchingRoot(HiveChord chord); boolean hasMatchingRoot(HarmonicLoop harmonicLoop); @Override WeightClass getVerticalWeight(); @Override void setVerticalWeight( WeightClass weight); @Override WeightClass getTimeseriesWeight(); @Override void setTimeseriesWeight(WeightClass weight); @Override WeightClass getThemeWeight(); @Override void setThemeWeight(WeightClass weight); @Override void setRhythmicWeight( WeightClass weight); @Override WeightClass getRhythmicWeight(); @Override WeightClass getEqWeight(); @Override void setEqWeight(WeightClass weight); @Override Integer getTotalWeight(); ChordCategory getChordCatagory(); void setChordCatagory(ChordCategory chordCatagory); WeightClass getHarmonicWeight(); void setHarmonicWeight(WeightClass harmonicWeight); List<String> getChordTypes(); void setChordTypes(List<String> chordTypes);  }### Answer:
@Test public void shouldRemoveOctaveFromChordName(){ HiveChord chord = new HiveChord("c#4maj7"); assertEquals("c#maj7", chord.getChordName()); }