I don't believe this Mary married both Josias and Josiah Fugate.
As previously mentioned about these lines, there are three men who have been confusing the connections: I tried to list the link for each but for some weird reason two of them are giving me the same URL even though they're totally different, so here they are this way:
1. Captain Josiah Fugate, Sr.
1740
Orange County, Virginia
Death: March 18, 1824 (83-84)
Ralls County, Missouri, United States
Place of Burial: Ralls, Missouri, United States
Immediate Family:
Son of Randolph Fugate, I and Mary Ann Fugate (Deelwood)
Husband of Eleanor Perry and Elizabeth Fugate (Smothers)
2. Captain Josiah Fugate - HAS TOO MAY SAME-NAME WIVES
February 27, 1688
King George County, Virginia, Colonial America
Death: March 18, 1757 (69)
King George County, Virginia, Colonial America
Immediate Family:
Son of James Fugate, II and Dorothy Pettit
Husband of Mary Fugate (Martin); Mary Frances Fugate (Martin) and Mary Fugate (Martin)
3, Captain Josias Fugate
circa 1688
King George, King George County, Virginia, United States
Death: before March 18, 1757
Virginia, United States
Immediate Family:
Son of Peter Fugate and Frances Fugate (Mould)
Husband of Mary Fugate (Martin)
# 1 is easy to keep from confusing with the others because nothing is the same. #2 and # 3 are the two that need to be sorted out because everything is the same but the parents and #2 has three wives with the same name.
I can tell from a glance that these lines have been problematic for some time. They even confuse me. I'm not going to touch any of it because there are already enough people involved, but just wanted to point out the issue with three same-name wives, etc.