I believe according to the law you can't ride your bike to the DMV. But in real life noone cares, here you just ride your bike up there and take the written test, then they ask you if you rode your bike there, when you tell them yes they say go ride to the end of the block and back while they watch from inside. Come back and poof, got your endorsment.
Although I believe if you took the MSF then sometimes that counts as your riding test, so you only have to take the written test for a license. This might depend on the state.
I've had my bike just over a week, I am taking MSF the 25th-27th. After that I can get my license, then I can get insurance, THEN I can go pay taxes and get the bike registered. Ugh damn laws!!