diff --git a/Tests/Unit/Sample/CoreAndShellTest.cpp b/Tests/Unit/Sample/CoreAndShellTest.cpp
index 340ea10e12bf04517ede562abd29161b820d1f23..8b8e615b2988afb422e8bd079a2dd5dc8f5f4952 100644
--- a/Tests/Unit/Sample/CoreAndShellTest.cpp
+++ b/Tests/Unit/Sample/CoreAndShellTest.cpp
@@ -25,7 +25,7 @@ TEST_F(CoreAndShellTest, ComplexCoreShellClone)
     Particle shell(shell_material, Box(shell_length, shell_width, shell_height));
     R3 relative_pos(0, 0, (shell_height - core_height) / 2);
     CoreAndShell coreshell(shell, core, relative_pos);
-    coreshell.setRotation(RotationY(90 * Units::deg));
+    coreshell.rotate(RotationY(90 * Units::deg));
     coreshell.setParticlePosition(R3(0, 0, -10));
 
     CoreAndShell* clone = coreshell.clone();