@Test
public void dockerfileToCommandListTest_1() throws Exception {

	File testFile = TestUtils.findTestFile( "/dockerfiles/dockerfile1" );
	List<DockerfileParser.DockerCommand> ldc = DockerfileParser.dockerfileToCommandList( testFile );
	Assert.assertEquals( 9, ldc.size());
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 0 ).type );
	Assert.assertEquals( "apt-get update", ldc.get( 0 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 1 ).type );
	Assert.assertEquals( "apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10", ldc.get( 1 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 2 ).type );
	Assert.assertEquals( "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list", ldc.get( 2 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.ADD, ldc.get( 3 ).type );
	Assert.assertEquals( "rabbitmq-env.conf /etc/rabbitmq/rabbitmq-env.conf", ldc.get( 3 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.COPY, ldc.get( 4 ).type );
	Assert.assertEquals( "/ttee/tree/toto.txt /usr/local/deploy/", ldc.get( 4 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 5 ).type );
	Assert.assertEquals( "apt-get update", ldc.get( 5 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 6 ).type );
	Assert.assertEquals( "apt-get install -y mongodb-10gen", ldc.get( 6 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.RUN, ldc.get( 7 ).type );
	Assert.assertEquals( "mkdir -p /data/db", ldc.get( 7 ).argument );
	Assert.assertEquals( DockerfileParser.DockerCommandType.COPY, ldc.get( 8 ).type );
	Assert.assertEquals( "ext1.jar /usr/local/deploy/", ldc.get( 8 ).argument );
}