### Question:
SortableSlot implements WritableComparable<SortableSlot> { public void begin(int slot) { this.slotNumber = slot; buffer.reset(0, 0); }  void begin(int slot); int getSlot(); void addByte(int data); void addRandom(); void add(Writable data); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override int compareTo(SortableSlot o); @Override int hashCode(); @Override boolean equals(Object obj); static final String NAME_BEGIN; static final String NAME_ADD_BYTE; static final String NAME_ADD_RANDOM; static final String NAME_ADD; }### Answer:
@Test public void begin() { SortableSlot slot = new SortableSlot(); slot.begin(100); assertThat(slot.getSlot(), is(100)); SortableSlot other = new SortableSlot(); other.begin(101); assertThat(slot, is(not(other))); }