
org.pentaho.hadoop.shim.spi.HadoopShim s = l.iterator().next();
assertTrue( org.pentaho.hadoop.shim.hdp21.HadoopShim.class.isAssignableFrom( s.getClass() ) );</BUG>
}
@Test
<BUG>public void pigShimRegistered() {
ServiceLoader<PigShim> l = ServiceLoader.load( PigShim.class );
PigShim s = l.iterator().next();
assertTrue( CommonPigShim.class.isAssignableFrom( s.getClass() ) );</BUG>
}

import java.util.ServiceLoader;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
public class ShimRegistrationTest {
