diff --git a/core-java-modules/core-java-reflection/src/main/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetExample.java b/core-java-modules/core-java-reflection/src/main/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetExample.java
new file mode 100644
index 0000000000..a20ee527f8
--- /dev/null
+++ b/core-java-modules/core-java-reflection/src/main/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetExample.java
@@ -0,0 +1,7 @@
+package com.baeldung.reflection.exception.invocationtarget;
+
+public class InvocationTargetExample {
+ public int divideByZeroExample() {
+ return 1 / 0;
+ }
+}
\ No newline at end of file
diff --git a/core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java b/core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java
new file mode 100644
index 0000000000..b4cabebcef
--- /dev/null
+++ b/core-java-modules/core-java-reflection/src/test/java/com/baeldung/reflection/exception/invocationtarget/InvocationTargetUnitTest.java
@@ -0,0 +1,23 @@
+package com.baeldung.reflection.exception.invocationtarget;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+import org.junit.jupiter.api.Test;
+
+public class InvocationTargetUnitTest {
+
+ @Test
+ public void whenCallingMethodThrowsException_thenAssertCauseOfInvocationTargetException() throws Exception {
+
+ InvocationTargetExample targetExample = new InvocationTargetExample();
+ Method method = InvocationTargetExample.class.getMethod("divideByZeroExample");
+
+ Exception exception = assertThrows(InvocationTargetException.class, () -> method.invoke(targetExample));
+
+ assertEquals(ArithmeticException.class, exception.getCause().getClass());
+ }
+}
diff --git a/pom.xml b/pom.xml
index 666ef838dd..71e5d21b02 100644
--- a/pom.xml
+++ b/pom.xml
@@ -814,7 +814,7 @@
spring-rest-shell
spring-rest-simple
spring-resttemplate
-
+ spring-roo
spring-scheduling
spring-security-modules/spring-security-acl
spring-security-modules/spring-security-angular/server
@@ -1416,7 +1416,7 @@
spring-rest-shell
spring-rest-simple
spring-resttemplate
-
+ spring-roo
spring-scheduling
spring-security-modules/spring-security-acl
diff --git a/spring-roo/pom.xml b/spring-roo/pom.xml
index 456642b1f0..448574ed19 100644
--- a/spring-roo/pom.xml
+++ b/spring-roo/pom.xml
@@ -413,7 +413,7 @@
spring-roo-repository
Spring Roo Repository
- http://repo.spring.io/spring-roo
+ https://repo.spring.io/spring-roo