@Test
public void testToArray() {

    final float[] store = {0.0f, 0.0f, 0.0f};
    final float[] retval = new Vector3f(1.0f, 2.0f, 3.0f).toArray(store);
    assertEquals(store, retval);
    assertArrayEquals(new float[] {1.0f, 2.0f, 3.0f}, retval, 0.0f);
    final float[] retval2 = new Vector3f(1.0f, 2.0f, 3.0f).toArray(new float[]{4.0f, 5.0f, 6.0f});
    assertArrayEquals(new float[] {1.0f, 2.0f, 3.0f}, retval2, 0.0f);
    final float[] retval3 = new Vector3f(1.0f, 2.0f, 3.0f).toArray(null);
    assertArrayEquals(new float[] {1.0f, 2.0f, 3.0f}, retval3, 0.0f);
}