def METHOD_NAME(self):
    """
    @return:
    """
    file1 = "te.hpgl"
    self.addCleanup(os.remove, file1)
    kernel = bootstrap.bootstrap()
    try:
        kernel.console("service device start -i newly 0\n")
        kernel.console("operation* remove\n")
        kernel.console(
            f"rect 2cm 2cm 1cm 1cm engrave -s 15 plan copy-selected preprocess validate blob preopt optimize save_job {file1}\n"
        )
    finally:
        kernel.shutdown()
    with open(file1) as f:
        data = f.read()
    self.assertEqual(hpgl_rect, data)