Jacob Bethell scored a pivotal 142 not out by the end of Day 4, achieving his first Test and maiden first-class century.