### Question:
GeneralConverter { public int convert(String text, NumberSystem numberSystem) { if (numberSystem == NumberSystem.HEX) return new HexConverter().convert(text); else return new OctanConverter().convert(text); }  int convert(String text, NumberSystem numberSystem);  }### Answer:
@Test public void shouldConvertFromHex() { int value = new GeneralConverter().convert("F", NumberSystem.HEX); assertEquals(15, value); }
@Test public void shouldConvertFromOctan() { int value = new GeneralConverter().convert("17", NumberSystem.OCTAN); assertEquals(15, value); }