@Test(timeout = 30000) public void testConstructor() { YoPreallocatedList<YoDouble> list = new YoPreallocatedList<>(YoDouble.class, "Test", 10, new YoVariableRegistry("Test")); assertTrue(list.isEmpty()); assertTrue(list.size() == 0); assertTrue(list.getLast() == null); }