### Question:
BaseGenerator implements Generator { protected String getRegistry() { if (!RuntimeMode.isOpenShiftMode(getProject().getProperties())) { return getConfigWithFallback(Config.registry, "jshift.generator.registry", null); } return null; } BaseGenerator(GeneratorContext context, String name);  BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector); String getName(); GeneratorContext getContext();  }### Answer:
@Test public void getRegistry() { Properties props = new Properties(); props.put("jshift.generator.registry", "jshift.io"); setupContextKubernetes(props, null, null); BaseGenerator generator = createGenerator(null); assertEquals("jshift.io", generator.getRegistry()); }
@Test public void getRegistryInOpenshift() { Properties props = new Properties(); props.put("jshift.generator.registry", "jshift.io"); props.put(RuntimeMode.FABRIC8_EFFECTIVE_PLATFORM_MODE, "openshift"); setupContextOpenShift(props, null, null); BaseGenerator generator = createGenerator(null); assertNull(generator.getRegistry()); }