Generate a unit test for the following method using GoogleTest framework:
```cpp
static inline unsigned int nearest_shift(unsigned int p_number) {
for (int i = 30; i >= 0; i--) {
if (p_number & (1 << i)) {
return i + 1;
}
}
return 0;
}
``` Respond with at most 100 words.
user