def METHOD_NAME():
    engine = create_engine("sqlite:///:memory:", echo=False)
    Base.metadata.create_all(engine)
    # noinspection SpellCheckingInspection
    DBSessionMiddleware(
        None,
        custom_engine=engine,
        session_args={"autocommit": False, "autoflush": False},
    )
    with db():
        repo = GroupRepository()
        a = Group(name="a")
        a = repo.save(a)
        assert a.id
        assert a == repo.get(a.id)
        b = repo.get_by_name(a.name)
        assert b == a
        repo.delete(a.id)
        assert repo.get(a.id) is None