@Test
public void isAlreadyExists() {

  assertThat(transactionException(1, "", "ALREADY_EXISTS").isAlreadyExists(), is(true));
  assertThat(transactionException(1, "entity already exists", "").isAlreadyExists(), is(true));
  assertThat(transactionException(1, "", "").isAlreadyExists(), is(false));
}