This test measures 2 substances found in amniotic fluid near the end of pregnancy. The amounts can tell your doctor how mature your unborn baby's lungs are.