UnitFactory { public SensorCommandValue createRpmValue(CommandResult commandResult) { return new RpmValue(commandResult); }  SensorCommandValue createAirFlowValue(CommandResult commandResult); SensorCommandValue createFuelConsumptionValue(CommandResult commandResult); SensorCommandValue createFuelLevelValue(CommandResult commandResult); SensorCommandValue createFuelTypeValue(CommandResult commandResult); SensorCommandValue createPercentageValue(CommandResult commandResult); SensorCommandValue createPressureValue(CommandResult commandResult); SensorCommandValue createFuelPressureValue(CommandResult commandResult); SensorCommandValue createRpmValue(CommandResult commandResult); SensorCommandValue createSpeedValue(CommandResult commandResult); SensorCommandValue createTemperatureValue(CommandResult commandResult); SensorCommandValue createTimeValue(CommandResult commandResult); SensorCommandValue createVoltageValue(CommandResult commandResult);  }
@Test public void testCreateRpmValue() throws Exception { SensorCommandValue valueObject = sut.createRpmValue(commandResultMock); assertValueObjectHasProperTypeAndResult(valueObject, RpmValue.class); }