ServiceLoader<PigShim> l = ServiceLoader.load(PigShim.class);
PigShim s = l.iterator().next();
assertTrue(CommonPigShim.class.isAssignableFrom(s.getClass()));</BUG>
}
@Test
<BUG>public void sqoopShimRegistered() {
ServiceLoader<SqoopShim> l = ServiceLoader.load(SqoopShim.class);
SqoopShim s = l.iterator().next();
assertTrue(org.pentaho.hadoop.shim.cdh53.ClassPathModifyingSqoopShim.class.equals(s.getClass()));</BUG>
}

package org.pentaho.hadoop.shim.cdh53;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ServiceConfigurationError;
import java.util.ServiceLoader;
import org.junit.Test;
import org.pentaho.hadoop.shim.spi.PigShim;
import org.pentaho.hadoop.shim.spi.SqoopShim;
import org.pentaho.hadoop.shim.spi.SnappyShim;
import org.pentaho.hbase.shim.spi.HBaseShim;
public class ShimRegistrationTest {
