}
public void testCreate_Enabled() throws ServiceNotEnabledException,
ServiceNotAuthorizedException {
db.getConfig().setBoolean("http", null, "receivepack", true);
ReceivePack rp;
rp = factory.create(new R(null, "1.2.3.4"), db);
assertNotNull("have ReceivePack", rp);
assertSame(db, rp.getRepository());
PersonIdent id = rp.getRefLogIdent();
assertNotNull(id);
assertEquals("anonymous", id.getName());
assertEquals("anonymous@1.2.3.4", id.getEmailAddress());
// Should have inherited off the current system, which is mocked