### Question:
TiSecurityContext extends SecurityContext { public static Builder builder() { return new Builder(); } private  TiSecurityContext(AccessController accessController,
                            IdentityResolver identityResolver,
                            Credentials credentials,
                            ObjectFactDao objectFactDao,
                            Function<UUID, List<FactAclEntity>> aclResolver); static TiSecurityContext get(); static Builder builder(); @Deprecated void checkReadPermission(FactEntity fact); void checkReadPermission(FactRecord fact); void checkReadPermission(ObjectRecord object); void checkReadPermission(OriginEntity origin); void checkReadPermission(Organization organization); @Deprecated boolean hasReadPermission(FactEntity fact); boolean hasReadPermission(FactRecord fact); boolean hasReadPermission(ObjectRecord object); boolean hasReadPermission(OriginEntity origin); boolean hasReadPermission(Organization organization);  }### Answer:
@Test(expected = RuntimeException.class) public void testCreateContextWithoutObjectFactDaoThrowsException() { TiSecurityContext.builder() .setAccessController(accessController) .setIdentityResolver(identityResolver) .setCredentials(credentials) .setAclResolver(aclResolver) .build(); }
@Test(expected = RuntimeException.class) public void testCreateContextWithoutAclResolverThrowsException() { TiSecurityContext.builder() .setAccessController(accessController) .setIdentityResolver(identityResolver) .setCredentials(credentials) .setObjectFactDao(objectFactDao) .build(); }