@Test
public void testGetRenderer() {

  ResourceDefinition resource = new ClusterResourceDefinition();
  assertTrue(resource.getRenderer(null) instanceof DefaultRenderer);
  assertTrue(resource.getRenderer("default") instanceof DefaultRenderer);
  assertTrue(resource.getRenderer("minimal") instanceof MinimalRenderer);
  assertTrue(resource.getRenderer("blueprint") instanceof ClusterBlueprintRenderer);
  try {
    resource.getRenderer("foo");
    fail("Should have thrown an exception due to invalid renderer type");
  } catch (IllegalArgumentException e) {
    // expected
  }
}