"I like to wear my own hat."
Translation:Mi ŝatas porti mian propran ĉapelon.
It's fairly simple. If a noun is the object of a verb, that noun and all its modifiers receive the accusative. The only odd thing is like if I were to say "I am going to eat a kilogram of tomatoes." In that case, the kilogram is actually what's being eaten and "of tomatoes" is just specifying what kind of kilogram it is, so it would be "Mi manĝos kilogramon da tomatoj."