@Test
public void testFindInstanceDirectoryOnAgent() {

	File f = InstanceHelpers.findInstanceDirectoryOnAgent( new Instance( "inst" )
			.component( new Component( "c" ).installerName( "my-plugin" )));
	File tempDir = new File( System.getProperty( "java.io.tmpdir" ));
	Assert.assertTrue( f.getAbsolutePath().startsWith( tempDir.getAbsolutePath()));
	Assert.assertTrue( f.getAbsolutePath().contains( "inst" ));
	Assert.assertTrue( f.getAbsolutePath().contains( "my-plugin" ));
}