### Question:
IntentEntry implements Comparable<IntentEntry> { public boolean isAckedBy(IntentEntry entry){ return entry.published >= this.lastUnlockedOrAcquired; } IntentEntry(InetSocketAddress member,LockMode state,long published);  IntentEntry(InetSocketAddress member,LockMode state,long published, long lastUnlockedOrAcquired); boolean isFor(InetSocketAddress myID); boolean isPublishedBefore(IntentEntry someEntry); boolean isPublishedAfter(IntentEntry someEntry); boolean isEnteredBefore(IntentEntry other); boolean isAckedBy(IntentEntry entry); boolean isAnAcquire(); static int tiebreaker(InetSocketAddress addr1, InetSocketAddress addr2); int compareTo(IntentEntry other); String toString(); public InetSocketAddress member; public long published; public long lastUnlockedOrAcquired; public LockMode state; }### Answer:
@Test public void testIsAckedBy() throws Exception { IntentEntry one = new IntentEntry(member1,LockMode.UNLOCKED,250L,100L); IntentEntry two = new IntentEntry(member2,LockMode.UNLOCKED,200L,200L); IntentEntry three = new IntentEntry(member3,LockMode.UNLOCKED,300L,300L); assertTrue(one.isAckedBy(one)); assertTrue(one.isAckedBy(two)); assertTrue(one.isAckedBy(three)); assertTrue(two.isAckedBy(one)); assertTrue(two.isAckedBy(two)); assertTrue(two.isAckedBy(three)); assertFalse(three.isAckedBy(one)); assertFalse(three.isAckedBy(two)); assertTrue(three.isAckedBy(three)); }