/*
 * TODO put header 
 */
package eu.lighthouselabs.obd.commands.fake;

import static org.powermock.api.easymock.PowerMock.verifyAll;
import static org.testng.Assert.assertEquals;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import eu.lighthouselabs.obd.commands.fuel.FuelEconomyWithMAFObdCommand;
import eu.lighthouselabs.obd.enums.FuelType;

/**
 * TODO put description
 * 
 */
// @PrepareForTest(InputStream.class)
public class FuelEconomyTest {

	private FuelEconomyWithMAFObdCommand cmdWithMAF = null;

	/**
	 * @throws Exception
	 */
	@BeforeMethod
	public void setUp() throws Exception {
		cmdWithMAF = new FuelEconomyWithMAFObdCommand(FuelType.DIESEL, 38,
				17.66d, -85.94f, false);
	}

	@Test
	public void testSomeLitersPer100Km() {
		cmdWithMAF = new FuelEconomyWithMAFObdCommand(FuelType.DIESEL, 38,
				17.66d, -85.94f, false);
		assertEquals(cmdWithMAF.getLitersPer100Km(), 1.0957601324895183d);
	}
	
	@Test
	public void testSomeMPG() {
		assertEquals(cmdWithMAF.getMPG(), 2.449243048140571d);
	}

	/**
	 * Clear resources.
	 */
	@AfterClass
	public void tearDown() {
		cmdWithMAF = null;
	}

}
@@ -967,25 +967,25 @@
 ), 1
-.0957601324895183
+5.379336121584492
 d);%0A
@@ -1065,24 +1065,24 @@
 (), 
-2.44924304814057
+15.2932479100904
 1d);

Fix expected values in test.