Heineken is to acquire a German brewery.