### Question:
ViewFrustum { public boolean intersects(Cuboid c) { Vector3f[] vertices = c.getVertices(); for (int i = 0; i < 6; i++) { if (distance(i, vertices[0].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[1].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[2].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[3].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[4].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[5].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[6].mul(rendererSize).sub(position)) > 0) { continue; } if (distance(i, vertices[7].mul(rendererSize).sub(position)) > 0) { continue; } return false; } return true; }  void update(Matrix4f projection, Matrix4f view, Vector3f paramPosition); boolean intersects(Cuboid c); boolean contains(Vector3f vec);  }### Answer:
@Test public void testIntersects() { Matrix4f projection = Matrix4f.createPerspective(70, 16 / 9.0f, 1, 2000); Matrix4f view = Matrix4f.createLookAt(new Vector3f(0, 0, 0), new Vector3f(0, 0, 1000), Vector3f.UP); frustum.update(projection, view, new Vector3f(0, 0, 0)); Vector3f[] vertices = new Vector3f[8]; vertices[0] = new Vector3f(0, 0, 16); vertices[1] = new Vector3f(16, 0, 16); vertices[2] = new Vector3f(16, 16, 16); vertices[3] = new Vector3f(0, 16, 16); vertices[4] = new Vector3f(0, 0, 0); vertices[5] = new Vector3f(16, 0, 0); vertices[6] = new Vector3f(16, 16, 0); vertices[7] = new Vector3f(0, 16, 0); Cuboid c = mock(Cuboid.class); when(c.getVertices()).thenReturn(vertices); }