def test_install(self):
        self.build('install')

        self.assertDirectory(self.installdir, [
            os.path.join(self.libdir, 'lib.jar'),
            os.path.join(self.libdir, 'program.jar'),
        ])

        os.chdir(self.srcdir)
        cleandir(self.builddir)
        self.assertOutput(
            ['java', '-jar', os.path.join(self.libdir, 'program.jar')],
            'hello from library!\n'
        )