Question: I wrote this piece of code but not sure why it doesn't print the second sentence, it just prints the first part of it which is "Some string concat is like".
I was expecting to see the rest of the sentence from TalkToMe method too. 

```
object1 = Object.new

def object1.TalkToMe
  puts ("Depending on the time, they may be in one place or another.")
end

object1.TalkToMe

puts "Some string concat is like " #{object1.TalkToMe} "

```

Answer: 
`AccessLevel` is meant to represent a set of individual access rights. To check for specific right you should use something like this:

```
(object.getAccessAllowed() & AccessRight.DELETE_AS_INT) == AccessRight.DELETE_AS_INT

```
Here is a way:

```
int accessAllowed = document.getAccessAllowed();
if (checkRight(accessAllowed, AccessRight.DELETE))
{
    log.trace("Access level "
        + AccessRight.DELETE.toString() + " is present");
}

private boolean checkRight(int rights, AccessRight ar)
{
    return (rights & ar.getValue()) != 0;
}

```