jhalterman/modelmapper — pull request #11 by i3nAkADj (2012-09-24 13:32:26+00:00)
Title: Bug found: MappingContextImpl.isShaded(String) is missing property-component delimiter (dot) in test

Hello Jonathan,

I'm using your library modelmapper in a project of the company I'm working for (small company mostly working for Siemens AG). Your library has been very useful for me - thank you!

I think I have found a bug in MappingContextImpl.isShaded(String) - I think the line

```java
if (subpath.startsWith(shadedPath))
```

is missing a trailing dot in the call to String.startsWith(String). Corrected line looks like this:

```java
if (subpath.startsWith(shadedPath + "."))
```

I have added a test case demonstrating the bug: source and destination are fairly simple beans containing two properties

```java
private String item;
private String itemX;
```

When trying to copy such a bean using
```java
Destination result = modelMapper.map(source, Destination.class);
```
, the model mapper skips *itemX*. The change to isShaded fixes that. All other test cases still work.