Shape { public Shape addTransform(ShapeTransform transform) { makeTransforms(); if (transform == null) { throw new IllegalArgumentException("transform cannot be null"); } transforms.add(transform); return this; } Shape(Vector3 origin); boolean isVisible(); void setVisible(boolean visible); ReadonlyVector3 getOriginReadonly(); boolean isRelativeToOrigin(); List<ShapeTransform> getTransforms(); Shape addTransform(ShapeTransform transform); Shape removeTransform(ShapeTransform transform); Shape clearTransforms(); void onAdd(LibShapeDraw apiInstance); void onRemove(LibShapeDraw apiInstance); void onPreRender(MinecraftAccess mc); static final void glContextStandardSetup(); void onPostRender(MinecraftAccess mc); final void render(MinecraftAccess mc); @Override String toString();  }
@Test(expected=IllegalArgumentException.class) public void testTransformAddInvalidNull() { new MockShape().addTransform(null); }