@Test public void getLockInstance() { ConsumePartition lockInstance = partitionLockInstance.getLockInstance(topic, app, partition); ConsumePartition lockInstance2 = partitionLockInstance.getLockInstance(topic, app, partition); Assert.assertEquals(lockInstance, lockInstance2); ConsumePartition lockInstance3 = partitionLockInstance.getLockInstance(topic, app, (short) 2); Assert.assertNotEquals(lockInstance, lockInstance3); }
public ConsumePartition getLockInstance(String topic, String app, short partition) { ConsumePartition consumePartition = new ConsumePartition(topic, app, partition); return getLockInstance(consumePartition); }
PartitionLockInstance { public ConsumePartition getLockInstance(String topic, String app, short partition) { ConsumePartition consumePartition = new ConsumePartition(topic, app, partition); return getLockInstance(consumePartition); } }
PartitionLockInstance { public ConsumePartition getLockInstance(String topic, String app, short partition) { ConsumePartition consumePartition = new ConsumePartition(topic, app, partition); return getLockInstance(consumePartition); }  }
PartitionLockInstance { public ConsumePartition getLockInstance(String topic, String app, short partition) { ConsumePartition consumePartition = new ConsumePartition(topic, app, partition); return getLockInstance(consumePartition); }  ConsumePartition getLockInstance(String topic, String app, short partition); ConsumePartition getLockInstance(ConsumePartition consumePartition); }
PartitionLockInstance { public ConsumePartition getLockInstance(String topic, String app, short partition) { ConsumePartition consumePartition = new ConsumePartition(topic, app, partition); return getLockInstance(consumePartition); }  ConsumePartition getLockInstance(String topic, String app, short partition); ConsumePartition getLockInstance(ConsumePartition consumePartition);  }