<s>
Mockito	B-Library
is	O
an	O
open	B-License
source	I-License
testing	B-Application
framework	I-Application
for	O
Java	B-Device
released	O
under	O
the	B-License
MIT	I-License
License	I-License
.	O
</s>
<s>
The	O
framework	O
allows	O
the	O
creation	O
of	O
test	O
double	O
objects	O
(	O
mock	O
objects	O
)	O
in	O
automated	B-Application
unit	I-Application
tests	I-Application
for	O
the	O
purpose	O
of	O
test-driven	O
development	O
(	O
TDD	O
)	O
or	O
behavior-driven	O
development	O
(	O
BDD	O
)	O
.	O
</s>
<s>
Mockito	B-Library
allows	O
developers	O
to	O
verify	O
the	O
behavior	O
of	O
the	O
system	O
under	O
test	O
(	O
SUT	O
)	O
without	O
establishing	O
expectations	O
beforehand	O
.	O
</s>
<s>
One	O
of	O
the	O
criticisms	O
of	O
mock	O
objects	O
is	O
that	O
there	O
is	O
a	O
tight	O
coupling	B-Application
of	O
the	O
test	O
code	O
to	O
the	O
system	O
under	O
test	O
.	O
</s>
<s>
Mockito	B-Library
attempts	O
to	O
eliminate	O
the	O
expect-run-verify	O
pattern	O
by	O
removing	O
the	O
specification	O
of	O
expectations	O
.	O
</s>
<s>
Mockito	B-Library
also	O
provides	O
some	O
annotations	O
for	O
reducing	O
boilerplate	O
code	O
.	O
</s>
<s>
Mockito	B-Library
began	O
by	O
expanding	O
on	O
the	O
syntax	O
and	O
functionality	O
of	O
EasyMock	B-Library
.	O
</s>
<s>
Consider	O
this	O
decoupled	B-Application
Hello	O
world	O
program	O
;	O
we	O
may	O
unit	O
test	O
some	O
of	O
its	O
parts	O
,	O
using	O
mock	O
objects	O
for	O
other	O
parts	O
.	O
</s>
<s>
As	O
can	O
be	O
seen	O
from	O
the	O
import	O
statements	O
of	O
HelloActionUnitTest	O
and	O
HelloActionIntegrationTest	O
classes	O
,	O
it	O
is	O
necessary	O
to	O
put	O
some	O
Mockito	B-Library
jars	O
and	O
JUnit	O
jars	O
in	O
your	O
class	B-Language
path	I-Language
to	O
be	O
able	O
to	O
compile	O
and	O
run	O
the	O
test	O
classes	O
.	O
</s>
