title: Detect if Serializable object is really serializable?
body: <p>Is there a built-in method - or can someone point me to a good pattern - for determining whether an object that implements <code>Serializable</code> is actually serializable at construction time?  I need something that doesn't have side effects, so I can't just call the methods in my application server that actually serialize the objects.</p>
  
  <p>I'd prefer something that I can take advantage of in the constructor without changing the constructor signature.  However, I don't mind building a factory for these objects if that would make it easier.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>According to <a href="https://stackoverflow.com/questions/970891/who-actually-implements-serializable-methods">this question's</a> <a href="https://stackoverflow.com/a/970976/182654">accepted answer</a> it looks like I can just create my own <code>ObjectOutputStream</code> -> <code>ObjectInputStream</code> pipe to test serializability of objects at creation time.</p>