}
@SuppressWarnings("unchecked")
@Test
public void testFailDuringDelete() throws Exception {
Hive hive = Hive.load(getConnectString(getHiveDatabaseName()), CachingDataSourceProvider.getInstance());
String primaryKey = new String("Asia");
Integer secondaryKey = new Integer(7);
Pair<Node, Node> nodes = initializeTestData(hive, primaryKey, secondaryKey);
Node origin = nodes.getKey();
Node destination = nodes.getValue();
NodeResolver dir = new DbDirectory(hive.getPartitionDimension(), getDataSource(getConnectString(getHiveDatabaseName())));
PartitionKeyMover<String> pMover = new PrimaryMover(origin.getUri());
// This mover just craps out on delete
Mover<Integer> failingMover = new Mover<Integer>() {
public void copy(Integer item, Node node) {
SimpleJdbcDaoSupport dao = new SimpleJdbcDaoSupport();