@Test
public void numberBuilderNegative() {

    // Check encoding of a negative value
    final ScriptBuilder builder = new ScriptBuilder();
    builder.number(-5);
    assertArrayEquals(new byte[] {
        0x01,        // Length of the pushed data
        ((byte) 133) // Pushed data
    }, builder.build().getProgram());
}