### Question:
RollbackRule implements Serializable { public RollbackRule(String exceptionName) { if (StringUtils.isNullOrEmpty(exceptionName)) { throw new IllegalArgumentException("'exceptionName' cannot be null or empty"); } this.exceptionName = exceptionName; } RollbackRule(String exceptionName);  RollbackRule(Class<?> clazz); String getExceptionName(); int getDepth(Throwable ex); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void RollbackRule() { RollbackRule rr = new RollbackRule(Exception.class); assertThat(rr.getDepth(new Exception())).isEqualTo(0); }