} );
String decodedPdu = Strings.dumpBytes( bb.array() );
bb.flip();
GracefulShutdownContainer container = new GracefulShutdownContainer();
try
{
decoder.decode( bb, container );
}
catch ( DecoderException de )
{
de.printStackTrace();
fail( de.getMessage() );
}
GracefulShutdown gracefulShutdown = container.getGracefulShutdown();
assertEquals( 0, gracefulShutdown.getTimeOffline() );
assertEquals( 32767, gracefulShutdown.getDelay() );
// Check the length
assertEquals( 0x06, gracefulShutdown.computeLength() );