TEZ-1559. Add system tests for AM recovery. (Jeff Zhang via hitesh)