@Test(expected = IllegalArgumentException.class)
public void testPerformOperation_Invalid() {

    BindOperationRecorder tested = new BindOperationRecorder(
            ldapOperationsMock);
    Object expectedDn = new Object();
    // Perform test.
    tested.recordOperation(new Object[]{expectedDn});
}