### Question:
FS20CommandHelper { public static FS20Command convertHABCommandToFS20Command(Command command) { if (command instanceof UpDownType) { return convertUpDownType((UpDownType) command); } else if (command instanceof OnOffType) { return convertOnOffType((OnOffType) command); } else if (command instanceof PercentType) { return convertPercentType((PercentType) command); } return null; }  static FS20Command convertHABCommandToFS20Command(Command command); static State getStateFromFS20Command(FS20Command command);  }### Answer:
@Test public void testConvertHABCommandToFS20Command() { Command command = new PercentType(80); FS20Command fs20Command = FS20CommandHelper.convertHABCommandToFS20Command(command); assertNotEquals(fs20Command, FS20Command.UNKNOWN); assertNotEquals(fs20Command.toString(), null); assertEquals(fs20Command, FS20Command.DIM_12); }