{
PDDocument fdeb = null;
try
{
fdeb = PDDocument.load( "test/input/pdf_with_lots_of_fields.pdf" );
PDAcroForm form = fdeb.getDocumentCatalog().getAcroForm();
PDTextbox feld2 = (PDTextbox)form.getField( "Feld.2" );
feld2.setValue( "Benjamin" );
String expected =
"1 1 0.8000000119 rg " +
" 0 0 127.5 19.8299999237 re " +
" f " +
" 0 0 0 RG " +
" 1 w " +
" 0.5 0.5 126.5 18.8299999237 re " +
" S " +
" 0.5 g " +
" 1 1 m " +
" 1 18.8299999237 l " +
" 126.5 18.8299999237 l " +
" 125.5 17.8299999237 l " +
" 2 17.8299999237 l " +
" 2 2 l " +
" 1 1 l " +
" f " +
" 0.75 g " +
" 1 1 m " +
" 126.5 1 l " +
" 126.5 18.8299999237 l " +
" 125.5 17.8299999237 l " +
" 125.5 2 l " +
" 2 2 l " +
" 1 1 l " +
" f " +
" /Tx BMC " +
"BT " +
"/Helv 14 Tf " +
" 0 0 0 rg " +
" 4 4.721 Td " +
"(Benjamin) Tj " +
"ET " +
"EMC";
testContentStreams( fdeb, feld2, expected );
PDRadioCollection feld3 = (PDRadioCollection)form.getField( "Feld.3" );
feld3.setValue("RB1");
assertEquals( "RB1", feld3.getValue() );
//assertEquals( ((PDCheckbox)feld3.getKids().get( 0 )).getValue(), "RB1" );
}