@Test (expected = RegistrationException.class)
public void checkRegistrationException()
        throws Exception {

    IContainer container = new Container();
    container.register(null, null);
    fail();
}