### Question:
LeaderElectorConfig extends CachedPrimitiveConfig<LeaderElectorConfig> { @Override public PrimitiveType getType() { return LeaderElectorType.instance(); }  @Override PrimitiveType getType();  }### Answer:
@Test public void testLoadConfig() throws Exception { LeaderElectorConfig config = Atomix.config(getClass().getClassLoader().getResource("primitives.conf").getPath()) .getPrimitive("leader-elector"); assertEquals("leader-elector", config.getName()); assertEquals(MultiPrimaryProtocol.TYPE, config.getProtocolConfig().getType()); assertFalse(config.isReadOnly()); }