Just an example for testing require() using Solidity tests in Truffle.
Simple test for modifiers using require statements in Solidity (> 0.5.0)