@SuppressWarnings("unchecked")
@Test
public void testWriteBoolean() throws Exception {
MessageBodyWriter p = new PrimitiveTextProvider();
ByteArrayOutputStream os = new ByteArrayOutputStream();
p.writeTo(Boolean.TRUE, null, null, null, MediaType.TEXT_PLAIN_TYPE, null, os);
assertTrue(Arrays.equals(new String("true").getBytes(), os.toByteArray()));
os = new ByteArrayOutputStream();
final boolean value = true;