import org.junit.Test;
<BUG>import org.junit.rules.TemporaryFolder;</BUG>
import static org.assertj.core.api.Assertions.assertThat;
public class FileTest {
<BUG>@Rule
public TemporaryFolder temp = new TemporaryFolder();</BUG>
@Test
public void trimKeyAndName() {
File file = File.create("   foo/bar/toto.sql  ");
assertThat(file.getKey()).isEqualTo("foo/bar/toto.sql");

import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class FileTest {
@Test
public void trimKeyAndName() {
File file = File.create("   foo/bar/toto.sql  ");
assertThat(file.getKey()).isEqualTo("foo/bar/toto.sql");
